To be able to ssh from one system to another without having to enter the password each time, do this:
  • On your local system from your home directory run the ssh-keygen command and accept the defaults.
  • Now copy the contents of the newly created /home/userid/.ssh/id_rsa.pub file into a file (see next step) on the remote system.
  • Copy the contents of the above file to a /home/userid/.ssh/authorized_keys file on the remote system.
    (Note: you may have to ssh from the remote back to your local machine so the .ssh folder gets created first.)