This looks like issue 368
When I updated the install never asked if I wanted to use PLink.
Now Git continues to look for an OpenSSH key. Git could not find my putty key.
I have tried loading my putty private key and reinstalling Git. No matter what I do I can't get Git to use my putty plink data and private key.
This has a workaround (issue 367)
1) making sure that plink is in PATH
2) Saving settings for one putty session (doesn't matter which one)
and by doing those before installing git.
Even with that process, it is not easy:
I was finally able to get GIT to work with Plink.
One comment:
I did start a Plink session before installing GIT. Even with a Plink session running I never able to get the installer to recognize PLink was running.
My work around:
- I finally just installed GIT 1.6.5.1.
- I changed the Plink path to removes spaces. I changed the directory from:
c:\program files\putty
to c:\putty
.
- I set the environment variable
GIT_SSH
to the new path. c:\putty\plink.exe
.
With these changes GIT is now functioning properly.
Janusz Skonieczny adds in the comments:
To setup this quickly run PowerShell as admin:
[Environment]::SetEnvironmentVariable("GIT_SSH", "D:\your_path_here\plink.exe", "User")
Update March 2017, for Git 2.13 (Q2 2017)
Git now auto-detects the ssh you need (openssh or plink), but you can force that detection with ss.variant
.
See commit dd33e07 (01 Feb 2017), and commit e9d9a8a (02 Jan 2017) by Segev Finer (segevfiner
).
See commit e2824e4 (01 Feb 2017) by Johannes Schindelin (dscho
).
See commit 6a4f3a9 (26 Jan 2017) by Junio C Hamano (gitster
).
(Merged by Junio C Hamano -- gitster
-- in commit be6ab59, 27 Feb 2017)
ssh.variant:
Depending on the value of the environment variables GIT_SSH
or GIT_SSH_COMMAND
, or the config setting core.sshCommand
, Git auto-detects whether to adjust its command-line parameters for use with plink
or tortoiseplink
, as opposed to the default (OpenSSH).
The config variable ssh.variant
can be set to override this auto-detection;
valid values are ssh
, plink
, putty
or tortoiseplink
.
Any other value will be treated as normal ssh.
This setting can be overridden via the environment variable GIT_SSH_VARIANT
.