- Create the RSA Key Pair on home machine
$ ssh-keygen -t rsa
- Store the keys and passphrase
Push enter twice to the prompts for where to save the key and the passphrase - Copy the public Key to the away machine
$ ssh-copy-id username@away.machine
or ifssh-copy-id
is not a functioning command$ cat ~/.ssh/id_rsa.pub | ssh username@away.machine "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"