Pages

Sunday, June 9, 2013

ssh login without password

Generate ssh key for your host pc

=> $ssh-keygen<enter>

Copy the key generated to remote pc to where you wish to login via ssh.

=>ssh-copy-id -i ~/.ssh/id_rsa.pub <userid>@<remote ip>

that's it! you should be able to login without prompting for password.

No comments:

Post a Comment