From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Unlock the full course today

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

About OpenSSH 2 server host keys

About OpenSSH 2 server host keys - Linux Tutorial

From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Start my 1-month free trial

About OpenSSH 2 server host keys

- There are multiple ways of authenticating using SSH, but the two most common are passwords and private public key pairs. For this exercise, we're going to need both of our VM's booted up, and you'll need the IP address of your RH host 2vm. To set up passwordless logins, I need to generate the SSH key pair using the SSH keygen command in the RH host 1vm. In a terminal, in your RH host 1vm, type in "ssh-keygen" and hit enter. Go ahead and take the defaults when prompted. Since we did not pass at any options, it created RSA private and public keys. Lets verify this by listing the dot SSH hidden directory. Type in clear and then type in "ls -l ~/.ssh" and hit enter. We can see that we have a file called "id_rsa". That is our private key, and we have a file called "id_rsa.pub" which is our public key. Let's view the public key with cat. Type in "cat ~/.ssh/id_rsa.pub" and hit enter. Now let's copy the public key to…

Contents