Passwordless log-in via SSH

#### PASSWORDLESS LOG-IN
# http://sial.org/howto/openssh/publickey-auth/
# copy public key to remote server on port 22 (change if required)
scp -P 22 ~/.ssh/id_rsa.pub user@server.com:~/
# or, using hosts
scp ~/.ssh/id_rsa.pub myhost:~/
# ssh into remote server and:
mkdir .ssh
cat id_rsa.pub >> .ssh/authorized_keys; rm id_rsa.pub
# adjust permissions if necessary
chmod go-w ~; chmod 700 ~/.ssh; chmod 600 ~/.ssh/authorized_keys