Added support for SSH keys

Implements #7

Thanks to @kersten for getting me started in the right direction.