26 Mar 2010

SSH Public/Private keys.

http://discussions.apple.com/message.jspa?messageID=11128067#11128067

Quickest way to generate and share SSH keys.
1. Generate key (if you haven’t done this before).
ssh-keygen -t rsa -C “tekkub@gmail.com

2. Upload key.
cat ~/.ssh/id_dsa.pub | ssh user@host ‘cat - » ~/.ssh/authorized_keys’

You may have to login to the server and mkdir .ssh
If you get permission denied, delete this servers .ssh folder and recreate it again.