Friday, November 13, 2009

How to get a password-less Putty Session

==How to get a password less Putty Session==
Putty is the virtual ssh terminal under with windows.

Download putty-sshgen

Run putty-sshgen & generate keys

Go to the putty configuration for the session you want to be passwordless.

Add an entry for the ssh private key

Login to your linux/bsd server

Add to ~/.ssh/authorized_keys the public key in the following fashion
  1. add a blank line
  2. add "ssh-rsa" with a blank space
  3. add the putty-sshgen public key, without the dashes, and all on one line.
When done ~/.ssh/authorized_keys should look like this:
       ssh-rsa 3NzaC1yc2EAAAAA--- RANDOM CRAP HERE ---aC1yc2EAA=

No comments: