SSH login without password
Last update
2017-02-28
2017-02-28
« — »
1 2 3 4 5 6 7 8 9 10 | # generate key pair with empty passphrase ssh-keygen -t rsa # upload your public key to the server cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> .ssh/authorized_keys' # depending on your SSH version you might also have to do: cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> .ssh/authorized_keys2' chmod 700 ~/.ssh chmod 640 ~/.ssh/authorized_keys2 |
Source: LinuxProblem, TheGeekStuff