SSH login without password

Let's say you want to login using ssh to a remote computer from a local computer without asking for password.

  1. Run in the remote computer the following command:
    ssh-keygen -t rsa -b 2048 -N ""

(this command generates 2 files: id_rsa and in ~/.ssh).

  1. Append the contents of into the file ~/.ssh/authorized_keys in the remote computer. (If authorized_keys does not exist, create it).
  2. Verify that the permissions on the folder ~/.ssh on the remote computer are 700 (drwx------)