0

Possible Duplicate:
How can I set up password-less SSH login?

I am having a debian based linode server. All the time if need to login to remote server i do

   ssh user@ip

and then I enter my password to login on remote server. How an I do the same thing using public and private key. Cause I don't want to give password to other ppls.

1
0

use ssh-keygen command to generate private and public key. Add your public key ( id_rsa.pub) in server's authorized_keys file ( located inside .ssh or create if doesn't exist ).

to allow others to login on your computer tell them to run ssh-keygen command on their computer, take their *.pub file and append inside ~/.ssh/authorized_keys file.

1
  • It was working for me but. Its not working for me. – Mohit Jain Jan 27 '13 at 15:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.