Monday, February 21, 2011

ssh without password

ssh without password

step 1

ssh-keygen -t rsa

step 2

scp ~/.ssh/id_rsa.pub user@remote:~/.ssh/authorized_keys2

note: this is to encrypt the connection with this public key and that this key is authorized for version 2 of the ssh protocol


now you can

ssh user@remote without password

step 3

cat several id_rsa.pub from many hosts, and store it as .ssh/authorized_keys2 at remote machine, you can allow many host to access the same remote host

No comments:

Post a Comment