1. Create your keypair:
    # ssh-keygen -t rsa
  2. Send the public key (~/.ssh/idrsa.pub) to the remote host. It is a plain text file. Store this in ~/.ssh/authorizedkeys on the remote host. If the file exists already, append it to the end of the file on a new line.
  3. Log out of the remote system. Try and log in.