[HOWTO] ssh without password / Coin Taf
user@homebox ls -ald ~/.ssh drwx------ 2 user user 4096 Oct 13 15:38 .sshVérifier la présence du fichier ~/.ssh/authorized_keys sur le site distant en chmod 644
username@somedomain.com ls -ald .ssh/authorized_keys -rw-r--r-- 1 username username 1297 Oct 25 15:09 ~/.ssh/authorized_keys
Générer la clef : user@homebox ~ $ ssh-keygen -t dsaGenerating public/private dsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_dsa): # Press 'enter' here
Enter passphrase (empty for no passphrase): # Press 'enter' here
Enter same passphrase again: # Press 'enter' here
Your identification has been saved in /home/user/.ssh/id_dsa.
Your public key has been saved in /home/user/.ssh/id_dsa.pub.
The key fingerprint is:
6f:c3:cb:50:e6:e9:90:f0:0f:68:d2:10:56:eb:1d:91 user@host
Envoyer la clef :
ssh username@somedomain.com -n "echo `cat ~/.ssh/id_dsa.pub` >> ~/.ssh/authorized_keys"
| mardi 25 octobre 2011 (15:30) | Marco | aucun commentaire | aucun trackback|