domingo, novembro 09, 2008

SSH login without a password

On the Client.
user$ssh-keygen -b 1024 -t rsa
Enter file in which to save the key (/user/.ssh/id_rsa):
Created directory '/user/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /user/.ssh/id_rsa.
Your public key has been saved in /user/.ssh/id_rsa.pub.
The key fingerprint is:
9a:cc:40:2d:39:47:a7:16:a6:e9:af:b7:97:82:97:6c user@maykon-laptop

Copy key public for the server.

user$ scp id_rsa.pub user@ip_host:/home/user/.ssh/

Rename in server id_rsa.pub to authorized_keys

In server
remoteServer$mv id_rsa.pub to authorized_keys

Nenhum comentário: