Automating 2-machine debugging using SSH

The short list of tasks for getting SSH running:

  • Generate a keypair on the developer computer:

    ssh-keygen -t rsa
  • Copy the public key of the keypair to the target machine (it's in ~/.ssh/id_rsa.pub)

  • Install the public key into the root user's list of authorized keys:

    cat id_rsa.pub >>
    ~/.ssh/authorized_keys
  • Test if you can connect to the target machine using the keys (instead of a password...hint: if SSH doesn't say Enter passphrase, you've done something wrong)