Shortest passwordless ssh tutorial, ever
I am readapting this tutorial from here for reference purposes only
local$ ssh-keygen -t dsalocal$ scp ~/.ssh/id_dsa.pub remotelocal$ ssh username@remoteremote$ cat ~/id_dsa.pub >> ~/.ssh/authorized_keysremote$ chmod 644 ~/.ssh/authorized_keysremote$ exitlocal$ ssh username@remote– Now instead of the normal password you should be asked for the password you entered for your dsa key. This isn’t passwordless yet but shows that ssh is using the key
Note: Leave Key password blank to have passwordless authentication
Notes:
chmod 0600 authorized_keys
ln -s authorized_keys2 authorized_keys (or viceversa)