How to make git to work with pagent(putty) on Windows?

4

1

I'm using Windows x64 and I'm not able to make msysgit to work using pagent authentication.

Here are some details:

The problem is that:

 plink -v -a -ssh git@github.com git version
 FATAL ERROR: Network error: Connection timed out

sorin

Posted 2010-03-18T09:49:06.980

Reputation: 9 439

Answers

3

As silly at it may seam the reason for this problem is that plink will use the default hostname/ip from the Default Settings and will ignore command line parameters.

The solution is to remove hostname/ip from Default settings.

Also if you fail to connect due to fingerprint you should first connect one time using putty in order to store the fingerprint, just run putty git@github.com.

sorin

Posted 2010-03-18T09:49:06.980

Reputation: 9 439

I don't have a ip or hostname set in PuTTY default settings but I still have this issue.

from win7, plink can't connect to my server boopsie by hostname - it's appending .home and going to a totally different ip:

c:\me>plink -v me@boopsie Looking up host "boopsie.home" Connecting to 67.220.66.112 port 22

But command line works fine:

c:\me>ping boopsie
Pinging boopsie[192.168.1.2] with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time<1ms TTL=64
 – lonstar  – 2013-03-11T23:04:36.410