Configure msysgit to use putty / plink

Sorry in advance for the main question - I am new to git and I am sure that I am missing something super simple that someone can answer very quickly.

During the installation of msysgit, I indicated that I would like to use PLink instead of OpenSSH as my shell client program. The environment variable "GIT_SSH" is set to "C: \ Program Files (x86) \ PuTTY \ plink.exe", this is the correct path to plink. I tried without quotes. "echo $ GIT_SSH" from the bash prompt displays the correct value for the environment variable. I can also connect to github via SSH using putty without any problems.

After running pagent and adding a private key, I opened a new git bash window and tried to connect to github (github already has its public key and is configured correctly - I use the jquery project as a Quick test). Despite the fact that I want to use PLink and apparently having the correct environment variables, msysgit is still trying to use the key files found in the ~ / .ssh directory.

I confirmed this by actually placing my private key in this directory, and everything works fine (I was able to clone the jQuery repository without any problems), but I would really like this set to be configured so that I can manage my personal keys through putty, if possible.

Not sure what I am missing. Any help is greatly appreciated - thanks in advance!

+5
source share
2

, , "plink", "ssh".

, ( bash) ( , GitHub SSH)

$ echo $GIT_SSH
C:\Program Files (x86)\PuTTY\plink.exe

$ "$GIT_SSH" -V
plink: Release 0.62

$ "$GIT_SSH" -ssh git@github.com
Using username "git".
Server refused to allocate pty
Hi [your-github-username]! You've successfully authenticated, but GitHub does not provide s
hell access.

"$GIT_SSH", , . -ssh PuTTY ssh.

C:\Program Files (x86)\PuTTY\ PATH, plink -ssh user@host

, ssh OpenSSH, OpenSSH PuTTY.

plink.exe Git/PuTTY, .

+6

, linux, :

set GIT_SSH=/c/PuTTY/plink.exe

, Windows, Linux.

:

echo $GIT_SSH
C:\Program Files (x86)\PuTTY\plink.exe   <-- not a valid path in bash shell
+1

All Articles