Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by James Mar 14 '12 at 2:30

This question was marked as an exact duplicate of an existing question.

This did not work for you:… ? – Rinzwind Mar 9 '12 at 11:09

use ssh-keygen command to generate private and public key. Add your public key ( 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.

share|improve this answer
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.