Creating and setting up SSH key based authentication for passwordless remote server logins on Linux or Mac OS X.
On the local server or workstation, logged in as, eg. myuser:
1 2 3
NOTE: When asked for file in wich to save the key, make sure the path reads something like /home/myuser/.ssh/. We want to save the new generated key-pair in the full path to above created
.ssh folder. Also make sure not to specify a passphrase, otherwise, you will still have to input a password at logon. You can also choose to generate a DSA key-pair in place of the RSA key-pair.
On the remote server, you wish to log into:
1 2 3 4
Now you can test from the local server or workstation if it works: