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.

Mohit Jain
  • 1,179

1 Answers1

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.

Peeyush
  • 287