Setting up password-less ssh

  1. Generate ssh key-pair for local workstation: ssh-keygen -t rsa ; accept default options and hit return when prompted for passphrase.
  2. Copy public key (~/.ssh/ to remote system: scp ~/.ssh/ remotesys:~/ If this is the first connection to the remote system, type yes to accept the remote system key.
  3. Login to remote system, configure remote system to trust public key:

    • ssh remotesys
    • create ~/.ssh if it doesn't exist: mkdir ~/.ssh
    • cat ~/ >> ~/.ssh/authorized_keys
    • chmod 700 ~/.ssh
    • chmod 640 ~/.ssh/authorized_keys
  4. Logout of remote system, and repeat login to check that everything works correctly. If so, ~/ can be removed from the remote system.