Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
How do I set up SSH so I don’t have to type my password?

Anyone knows about this?

share|improve this question

migrated from stackoverflow.com Oct 28 '09 at 1:07

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Diago Oct 28 '09 at 9:32

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.

1  
Duplicate of superuser.com/questions/8077/… –  dbr Oct 28 '09 at 1:49

3 Answers 3

This should probably be on superuser ...

This guide discusses setting up ssh keys based authentication: http://pkeck.myweb.uga.edu/ssh/.

Basically you create ~/.ssh/authorized_keys (or ~/.ssh/authorized_keys2) and populate it with your public key as created by ssh-keygen. PuTTY for Windows also comes with a key generation tool (and key agent) if you want to automatically log in from Windows.

Update: http://superuser.com/questions/8077/how-do-i-set-up-ssh-so-i-dont-have-to-type-my-password (It was already there even! :) )

share|improve this answer
1  
Another tutorial with screenshots is here: wowtutorial.org/tutorial/22.html :) –  Paul Oct 28 '09 at 0:18

Sure. ssh-keygen to build an SSH key. Fill in the information, leave the password blank. The private key was stored in ~/.ssh/id_dsa and the public key in ~/.ssh/id_dsa.pub. SSH into the server of your choice, and append the contents of your public key file into ~/.ssh/authorized_keys on the server. Create the file and the .ssh directory as necessary.

And this question belongs on ServerFault, not SuperUser IMHO.

share|improve this answer
    
It's over there too, heh: serverfault.com/questions/2429/… –  opello Oct 28 '09 at 0:21

After you use ssh-keygen to generate the key see if you have the command ssh-copy-id which you use like this

$ ssh-keygen -t dsa
$ ssh-copy-id -i ~/.ssh/id_dsa.pub remotehost

If you don't have ssh-copy-id you'll have to log into the remotehost and add the contents of your local ~/.ssh/id_dsa.pub to remotehost's ~/.ssh/authorized_keys

share|improve this answer