Setting up SSH Keys

  1. Create the RSA Key Pair on home machine
    $ ssh-keygen -t rsa
  2. Store the keys and passphrase
    Push enter twice to the prompts for where to save the key and the passphrase
  3. Copy the public Key to the away machine
    $ ssh-copy-id username@away.machine
    or if ssh-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"