Sign up ×
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 Oct 28 '09 at 1:07

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

marked as duplicate by BinaryMisfit 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.

Duplicate of… –  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:

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: (It was already there even! :) )

share|improve this answer
Another tutorial with screenshots is here: :) –  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/ 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:… –  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/ 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/ to remotehost's ~/.ssh/authorized_keys

share|improve this answer