Skip to content

Instantly share code, notes, and snippets.

@d-Rickyy-b
Created April 12, 2020 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save d-Rickyy-b/9eb7dd50511a510647efb31f8c409485 to your computer and use it in GitHub Desktop.
Save d-Rickyy-b/9eb7dd50511a510647efb31f8c409485 to your computer and use it in GitHub Desktop.
How to make pageant load your ssh keys and start putty afterwards

How to make pageant load your ssh keys and start putty afterwards

For me it used to be very annoying to always manually start pageant, load my key(s) one by one, enter their passwords and then manually start putty. So I thought of an easy way to automate that process. And luckily we don't even need any kind of script for that. Just a single link, that will open pageant with our specified key(s) and afterwards will run putty. Here you can see how that works!

Instructions

  1. Create a new link to your pageant.exe
  2. Open the link's properties
  3. Go to the tab "Link properties" and enter "C:\path\to\pageant.exe" "C:\path\to\key.ppk" -c "C:\path\to\putty.exe"
  4. Take the path of the pageant's directory and enter it in "Start in" field.

When you now double click the link, you should be prompted with a password field (if you set a password) and pageant will auto load your keys. After that, it will start putty, so that you can instantly start an ssh session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment