How to setup Passwordless SSH
by bram
1. Local:
ssh-keygen
scp ~/.ssh/*.pub username@remote:
ssh username@remote
2. Remote
mkdir .ssh
cat ~/*.pub >> ~/.ssh/authorized_keys
rm *.pub
chmod 644 ~/.ssh/authorized_keys
-or-
Script it like this:
ssh-keygen
scp ~/.ssh/*.pub user@remote:`uname -n`.pub
ssh user@remote “cat ~/*.pub >> ~/.ssh/authorized_keys”
ssh user@remote “rm ~/*.pub”