SSH Config

To allow me talk to my Subversion repositories I require to talk over an SSH connection. I will get into the Subversion set up another time, but for now this is how I enabled the SSH part to not require a password or phrase when my SVN client logs in:mkdir ~/.ssh

chmod 700 ~/.ssh

ssh-keygen -q -f ~/.ssh/id_rsa -t rsa

Enter twice to clear the passphrase

Now its not the most secure to not use a Passphrase, but unfortunately for the SVN client (RapidSVN) I am having to use it doesn’t give you the chance to enter a passphrase when connecting. It just says the connection could not be made.

Then we need to sort out the permissions on the folders:

chmod go-w ~/

chmod 700 ~/.ssh

chmod go-rwx ~/.ssh/*

Now we have to move the key to the server:

scp ~/.ssh/

This will secure copy the file across to the server, now you need to enter some commands on the server:

mkdir ~/.ssh

chmod 700 ~/.ssh

cat ~/ >> ~/.ssh/authorized_keys

chmod 600 ~/.ssh/authorized_keys

rm ~/

These commands append the key to the end of the authorized_keys file, so the ssh server knows to let you access if your key matches.