Wednesday, November 6, 2013

How to ssh with no password


1.      1.  ssh-keygen –t rsa on server1
hit return on password
2.      2.  ssh-copy-id –I .ssh/id_rsa.pub user@server2
3.       3. on server2
a.       chmod 700 .ssh
b.      chmod 640 .ssh/authorized_key
4.      4. Finally you can test it ssh user@server2

No comments:

Post a Comment