My use case needed multiple github users with passphrase-protected ssh keys.
I sorted my ~.ssh/config
file to use different keys for different repo domains, as described here
However, I don't want to type my passphrase every time, and I don't want to use ssh-agent.
Here's how I set up Pageant to ask for and remember my passphrase on Windows login:
- Download the Putty Tools package
- Win+R to open run dialog
- shell:startup to open the auto start folder in windows explorer
- Navigate to your Pageant folder in a separate Explorer window
- Right click and drag PAGEANT.EXE to the Startup folder. Choose Create Shortcut
- Right click the shortcut, properties, Shortcut tab
- Find the path to your .ppk encoded keypair
- generate one with PUTTYGEN.EXE if you need a new one
- convert one with PUTTYGEN.EXE if you have a linux id_rsa file but no .ppk
- win7+ : shift right click your key in Explorer, Copy as path
- Append the key path to the C:\whatever\PAGEANT.EXE line
- e.g: "Target:
C:\putty\PAGEANT.EXE plato_cambrian.ppk plato.ppk
"
- If your keys aren't adjacent to PAGEANT you can use absolute paths or change "Start in:" which is Pageant's CWD
- Open the shortcut or reboot, and type your passphrases
Also, for anyone on ubuntu/linux mint who ended up here, I documented similar steps here