Friday, June 7, 2013

Password less SSH

Simple thing, i am not going too deeeeeeep in it.
If I want to ssh password free from Client A to Server B.
I will do below thing ............
On Client A
create RSA public key

#ssh-keygen -t rsa

no need to feed any info, just enter and enter and enter..

this will create id_rsa.pub file under your user's home directory .ssh hidden folder.
Copy the contents of id_rsa.pub file to Server B's your intended user's home directory under .ssh hidden folder in authorized_keys file.
Use below command to accomplish this

#ssh-copy-id -i .ssh/id_rsa.pub USERABC@SERVER_B

it will ask for the password.just enter the USERABC's password. once completed.

Just test with normal ssh command

#ssh USERABC@SERVER_B

No comments:

Post a Comment