

OpenSSH running such that you can remotely login via SSH.A user account setup that has sudo access.This article assumes you already run a Linux server somewhere with: In this article I’ll explain how you can configure SSH to login with the help of an SSH key pair. The trick is to use an SSH key pair, instead of a password. What if I told you that it’s possible to login via SSH without a password and at the same time close this security threat? So increased convenience for you and increased security for your server. With enough persistence and patience, they might eventually succeed. Especially with an Internet facing server, someone will figure out its IP address and try to login via SSH by guessing a username and password combination. This makes sense, yet also poses a security threat. Example:Īfter running the ssh command to remotely login to your server, you need to enter your password in order to establish the connection. The -p part can be left out, if you use the default port 22, otherwise replace with the SSH port you configured on the server. Next, replace with its IP-address, hostname or fully qualified domain name. Replace with the username of your user account on the server. With OpenSSH running on your server, you can login to your server with the ssh program, using command syntax: Consequently, SSH is the ideal method for remotely administering a Linux server.Īfter you setup Linux on your server, the installer probably already installed the OpenSSH server software.

This means that all communication between your PC and your server is secure, even over an unsecured network. More importantly, it does so while using a cryptographic based communication protocol. SSH makes it possible for you to open up a remote terminal session on your server. In this article you’ll learn step-by-step how to setup an SSH key pair for logging into your server via SSH, without having to enter a password. If done properly, this results in more convenience for you and more security for your server. Looking for a way to login to your Linux server via SSH without specifying a password? Using an SSH key pair is the way to go then.
