Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
PuTTYTray can help you log in automatically without having disgusting saved passwords, using standard SSH keys. This is more secure and standard, better supported by onwards/downstream tools, but a bit of a pain to set up. Since
p0.63-t016, PuTTYTray has tried to help with this:
- From the PuTTYTray configuration screen, start the Agent.
- From the Pageant Key List the appears, click
Add ~/.ssh/id_rsa. This will pick up the key you use for OpenSSH (i.e. git) if it exists, or will offer to generate you one. If you already have one, and hence don't get this prompt, you can skip to using the key.
- PuTTYgen will ask you to move the mouse around a bit, then will ask if you want to password protect this key. If your computer is secure (remains locked/off all the time, and is not shared with others, etc.), the password is less necessary.
- You should now have the key shown in the Pageant Key List. Pageant has some settings you might want from it's system tray icon: "Persist keys" causes it to remember added keys across application restarts (but not the passphrases for them), and "Start with Windows" causes pageant to start itself with Windows. If you tick both, you will be prompted for passwords when you log in (if you have any), then will be able to immediately connect to any machines.
- Click "Copy OpenSSH public keys". This places the public keys on the clipboard.
- Log into the target machine with a password (for the last time!).
~/.ssh/authorized_keysin your favourite text editor. You might need to create
- Paste the fingerprints into the file, save and exit.
- Log out, and attempt to log back in. You should be logged straight in, not asked for a password.