From the course: Learning CentOS Linux
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Adding a key to a user for SSH access
From the course: Learning CentOS Linux
Adding a key to a user for SSH access
- [Instructor] Now that we have a user to connect to our system with, let's take a look at upgrading that user to use a key instead of a password. A key, or really a keypair, is made up of two parts, a private key which you keep on your computer and a public key which you store on servers you want to connect to using the keys. This process isn't specific to Sentos. It's a fairly general thing to do across the Linux ecosystem. So we'll go through it a little quickly. For more information about the process, take a look at our Linux remote access and system administration courses. Generating the key usually starts on the client, not on the server. That's because it's the best practice for users to keep their own private keys rather than to have them be given keypairs by the administrator. You can think of a private key like a really long password. As I mentioned earlier, the public key is the portion that's sent to the server. We'll generate a keypair with ssh_keygen, and this will place…
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
-
-
-
-
The Linux file system and the Filesystem Hierarchy Standard4m 13s
-
(Locked)
Configuring the network for a CentOS server2m 51s
-
(Locked)
Configuring the network manually6m 45s
-
(Locked)
Configuring the network with NetworkManager4m 45s
-
(Locked)
Setting the hostname2m 32s
-
(Locked)
Connecting to the system remotely with Secure Shell (SSH)4m 6s
-
(Locked)
Adding an administrative user with SSH access3m 41s
-
(Locked)
Adding a key to a user for SSH access4m 24s
-
(Locked)
Transferring files to and from the server5m 1s
-
(Locked)
File permissions2m 12s
-
(Locked)
Working with users and groups3m 52s
-
(Locked)
Installing and updating software8m 5s
-
(Locked)
Installing packages by group1m 34s
-
(Locked)
Installing packages from other sources4m
-
-
-
-
-
-