Warning: This content was posted a while ago and may be incorrect by now. Please search for more recent guidance with your preferred search engine.
Password-less SSH
- terminal
Want to SSH into your server without having to enter the password each time? Read on.
On your local machine in Terminal:
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub remote:~/
ssh username@remote
Enter your password and then on the remote server:
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 644 ~/.ssh/authorized_keys
exit
And finally on your local machine again:
ssh username@remote
You should now have been able to SSH in without having to enter your password.