SSH Key Setup

mkdir ~/.ssh
chmod 0700 ~/.ssh
ssh-keygen -t dsa -f ~/.ssh/id_dsa
scp ~/.ssh/id_dsa.pub user@server.example.com:~/.ssh/keys/machine-user-dsa.pub
ssh user@server.example.com
cat ~/.ssh/keys/machine-user-dsa.pub >> ~/.ssh/authorized_keys

Also available in: HTML TXT