Archive for February 28th, 2009

28th February
2009
written by simplelight

On local machine:

Enter at command prompt: ’ssh-keygen -t dsa’. Use the default locations and don’t enter a passphrase.

Then ssh to server using:

ssh username@yourdomain.com ‘test -d .ssh || mkdir -m 0700 .ssh ; cat >> .ssh/authorized_keys && chmod 0600 .ssh/*’ < ~/.ssh/id_dsa.pub

After you enter your password the first time you will no longer have to enter it.