January 2018
Intermediate to advanced
376 pages
8h 45m
English
Transferring my public key to a remote server allows the server to readily identify both me and my client machine. Before I can transfer the public key to the remote server, I need to add the private key to my session keyring. This requires two commands. (One command is to invoke the ssh-agent, and the other command actually adds the private key to the keyring.):
donnie@linux-0ro8:~> exec /usr/bin/ssh-agent $SHELLdonnie@linux-0ro8:~> ssh-addEnter passphrase for /home/donnie/.ssh/id_rsa:Identity added: /home/donnie/.ssh/id_rsa (/home/donnie/.ssh/id_rsa)donnie@linux-0ro8:~>
Finally, I can transfer my public key to my CentOS server, which is at address 192.168.0.101:
donnie@linux-0ro8:~> ssh-copy-id ...
Read now
Unlock full access