Monday, May 05, 2008

Git with Putty on Windows

It took me awhile to find this, so here it is for others. If you want git to use your private ssh keys through pageant that comes with PuTTY here's how to do it from

  1. Set an environment variable named GIT_SSH to the full path of plink.exe (ie. C:\Program Files\PuTTY\plink.exe)
  2. Include your login name in git urls. Otherwise plink.exe will report strange errors.
After that your git will use pageant just like PuTTY does. The mailing list link has more details about setting up PuTTY if you need them.


Steffan said...

Thanks a lot, was scratching my head for awhile

Jeff said...

Thanks, this was just what I was looking for.

agtdino said...

Hello, perhaps there is needed to add to the %PATH% the folder of PuTTY

set PATH=%PATH%;C:\Program Files (x86)\PuTTY

if change from System Propierties, need to restart the console CMD.