How to confiure Passwordless access via SSH

A quick guide on how to configure passwordless access to an ssh service, or generate your ssh keys for git.

There can't be many developers that haven't already created keys and configured passwordless access to an SSH Service, but if you've not here's how!

Full disclosure: This is taken from my original go to post on Passwordless SSH Logins from the CS dept of Utah Univercity. I've recorded the link in a number of places but with time the links get lost so for posterity's sake here it is:

Generate your key pair

ssh-keygen -t dsa -b 1024

Copy public key to remote machine

cat ~/.ssh/ | ssh 'cat >> .ssh/authorized_keys'

If you need to make a .ssh directory on the remote machine

cat ~/.ssh/ | ssh 'mkdir .ssh; cat >> .ssh/authorized_keys'

You could use ssh-copy-id but I've got a preference for he above and it's never let me down!

Now, OSX has a keychain out of the box, there's no such luck with windows. However, if you've cygwin installed then this is how to setup a keychain in cygwin.