Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 jrg Mar 14 '12 at 2:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

This did not work for you: askubuntu.com/questions/46930/… ? –  Rinzwind Mar 9 '12 at 11:09

1 Answer 1

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.

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.