ssh Without a Password

Here's how to set up password-free ssh.  Work out any problems with passworded ssh before proceeding.

  1. 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.)
  2. 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.
  3. On the server:
    1. chmod 600 .ssh
    2. chmod 600 .ssh/authorized_keys2
  4. On the client, run "ssh yourId@yourServer" and it should login without a password.

­

ssh-copy-id

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