ssh Without a Password
Submitted by Kevin Kleinfelter on Mon, 2009-06-08 19:22.
Here's how to set up password-free ssh. Work out any problems with passworded ssh before proceeding.
- On the client machine, run "ssh-keygen -t rsa" (Note: Only do this if you don't have ssh without password connecting from this client to ANYWHERE.)
- Copy your id_rsa.pub (or your identity.pub, or whatever you've named your public key) to the server as ~/.ssh/authorized_keys. If you already have an authorized_keys, append your id_rsa.pub to that file.
- On the server:
- chmod 600 .ssh
- chmod 600 .ssh/authorized_keys2
- On the client, run "ssh yourId@yourServer" and it should login without a password.

Delicious
Digg
Reddit
ssh-copy-id
ssh-copy-id is a shell script that does steps 2 and 3. Quite handy.