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.
- Run in the remote computer the following command:
ssh-keygen -t rsa -b 2048 -N ""
(this command generates 2 files: id_rsa and id_rsa.pub in ~/.ssh).
- Append the contents of id_rsa.pub into the file ~/.ssh/authorized_keys in the remote computer. (If authorized_keys does not exist, create it).
- Verify that the permissions on the folder ~/.ssh on the remote computer are 700 (drwx------)