Tuesday, 13 August 2013

SSH login without password

Hello,

In order to login using ssh without any password from computer A to computer B please follow the steps:

1) In computer A, open a console and type ssh-keygen -t rsa. Please do not provide any input to the questions that are asked. 
2) In computer B, create a directory as ~/.ssh and set permission to 700
3) In computer A, type cat ~/.ssh/id_rsa.pub | ssh b@B 'cat >> ~/.ssh/authorized_keys'
4)In computer B, set ~/.ssh/authorized_keys file to 640
5) In computer A, check if ssh requires password by typing ssh b@B;

Hope it works for you.

Ps: Thank you Ssh login without password for this valuable information.

No comments:

Post a Comment