From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Unlock the full course today
Join today to access over 23,300 courses taught by industry experts.
Configure key-based authentication for SSH
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Configure key-based authentication for SSH
- [Tutor] There are multiple ways of authenticating using SSH but the two most common are passwords and private public key pairs. In this video, we'll configure private public key pairs for passwordless logins. The first step to passwordless logins is to generate the SSH key pair using the ssh-keygen command. In a terminal on rhhost1, type in ssh-keygen and hit enter. Go ahead and take the defaults when prompted. Since we did not pass it in the options, it created RSA, private and public keys. Let's verify this by listing the .ssh hidden directory. Type in clear and then type in ls -l ~/.ssh and hit enter. We can see that we have a file named id_rsa that is our private key. And we have a file named id_rsa.pub which is our public key. Now you need to copy the public key to your rhhost2 machine using its host name. We configured host names earlier in this course. Let's copy that public key across using the ssh-copy-id command. Type in ssh-copy-id rhhost2 and hit enter. Type in user…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Configure Secure Shell2m 36s
-
(Locked)
Configure key-based authentication for SSH2m 46s
-
(Locked)
Securely transfer files between systems5m 20s
-
(Locked)
Access Linux from Windows using PuTTY2m 52s
-
(Locked)
Access Linux from macOS or Linux using SSH57s
-
(Locked)
Access Linux from iOS using SSH1m 52s
-
(Locked)
Access Linux from Android using SSH1m 34s
-
-
-
-