December 31, 2003

Passwordless Logons with SSH

Learn how to set up passwordless SSH logins with keypair authentication. Simplify your secure access to remote systems with this easy-to-follow guide.

  1. Create your keypair:
    # ssh-keygen -t rsa
  2. Send the public key (~/.ssh/id_rsa.pub) to the remote host. It is a plain text file. Store this in ~/.ssh/authorized_keys 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.