We've expanded our news coverage and improved our search!
for the latest or search for all things across O'Reilly!
Quick Logins with ssh Client Keys
Works perfect to me!
Here you have my case as example:
root@er1smc1>ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in //.ssh/id_rsa.
Your public key has been saved in //.ssh/id_rsa.pub.
The key fingerprint is:
-rw-r--r-- 1 root root 1331 Jan 20 11:51 known_hosts
-rw------- 1 root root 883 Jan 20 14:50 id_rsa
-rw-r--r-- 1 root root 222 Jan 20 14:50 id_rsa.pub
Connecting to 192.168.2.92...
sftp> cd .ssh
sftp> put id_rsa.pub
Uploading id_rsa.pub to /home/one/.ssh/id_rsa.pub
linux1$ cd .ssh/
linux1$ ls -lrt
-rw-r--r-- 1 one one 227 Feb 12 2009 known_hosts
-rw-r--r-- 1 one one 222 Jan 20 16:47 id_rsa.pub
linux1$ mv id_rsa.pub authorized_keys2
Connection to 192.168.2.92 closed.
root@er1smc1>ssh firstname.lastname@example.org !NO password!