From the course: Ubuntu Linux: Service Configuration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure SSH-based remote access using public/private key pairs

Configure SSH-based remote access using public/private key pairs

From the course: Ubuntu Linux: Service Configuration

Start my 1-month free trial

Configure SSH-based remote access using public/private key pairs

- [Instructor] In order to further secure the remote access to a machine using SSH, we can use a cryptographic key pair, instead of a password, to connect. Passwords can be stolen, or guessed, but a cryptographic key file is a little bit easier to secure. A key pair is made up of a public key and a private key. The public key is sent to systems where we want to have access. And the private key is used during the connection process to authenticate. To use a key to connect, we need to take a few steps. We need to generate a key pair, and then we need to send our public key to a server, and then tell the server to allow the use of keys to connect. Typically, a user will generate their own key pair, in order to keep the private key secret. So let's take a look at doing that. The tool we'll use to make a key pair is called ssh-keygen, and it comes with both the ssh server and ssh client packages. Ssh-keygen, by default, uses the RSA encryption algorithm, and 2048 bits, though you can…

Contents