Tesugen

How To SSH Without Passwords

As a note to myself and others who want to do the same thing, here’s how to generate SSH keys to not have to enter your password each time you need to do something remotely and securely.

Generate a key pair using ssh-keygen, copy the public key to the remote host and place it in .ssh/authorized_keys (or authorized_keys2 for an SSH2 key). Then copy the private key to .ssh/identity on your local machine. Now everything’s set for unhindered ssh’ing.

The above was posted to my personal weblog on September 5, 2002. My name is Peter Lindberg and I am a thirtysomething software developer and dad living in Stockholm, Sweden. Here, you’ll find posts in English and Swedish about whatever happens to interest me for the moment.

Posted around the same time:

The seven most recent posts:

  1. Tesugen Replaced (October 7)
  2. My Year of MacBook Troubles (May 16)
  3. Tesugen Turns Five (March 21)
  4. Gustaf Nordenskiöld om keramik kontra kläddesign (December 10, 2006)
  5. Se till att ha två buffertar för oförutsedda utgifter (October 30, 2006)
  6. Bra tips för den som vill börja fondspara (October 7, 2006)
  7. Light-Hearted Parenting Tips (September 16, 2006)
Bloggtoppen.se