Passwordless Authentication with SSH

When doing things like secure automated backups via ssh and/or rsync over ssh, you will need to setup passwordless authentication so that you are not prompted to enter the password for the ssh connection. This is very easy to do on your Dedicated Server and is broken into two parts.

Client Side
————————————————–
mkdir ~/.ssh
chmod 700 ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa (just hit enter for all questions)
scp ~/.ssh/id_rsa.pub [email protected]:~/

Server Side
————————————————–
mkdir ~/.ssh
chmod 700 ~/.ssh
cat id_rsa.pub >> .ssh/authorized_keys
chmod 644 .ssh/authorized_keys
exit

Leave a Reply