Whenever I try to install Git for Windows, using the installer downloaded from here, the installation seemingly skips the step where I configure my Secure Shell client for Git.
Normally during installation, a screen prompting the user to choose one of either OpenSSH (installed with Git) or PuTTY PLink (the default option) is shown. With my latest few installs, this screen is nowhere to be found. Instead, Git seems to be silently configured to use PLink without any input from me.
Can anyone tell me why this is happening?
If I cannot choose which SSH client to use at installation, can anyone tell me how to reconfigure Git to point to OpenSSH instead of TortoisePLink?
This seems to controlled by a Git environment variable (mine reads "GIT_SSH=c:\Program Files\Putty\plink.exe" as opposed to "GIT_SSH=ssh.exe" as it does on another PC with Git working).
As a work around, does anyone know how to change this variable?
Best Answer
I've run into this before. Much needs to be done to switch to OpenSSH.
Edit
C:\Program Files (x86)\Git\setup.ini
and REMOVE the following lines (IF they are in the file):Edit
C:\Program Files (x86)\Git\etc\profile
and REMOVE the lineMake sure you have an SSH private key file. File is in OpenSSH format NOT in PuTTY private key format,
.ppk
.Create a
.ssh
directory for the Git user and copy theid_rsa
file there.Open a DOS command Window and type in the command
Look for
GIT_SSH
andSVN_SSH
If found, this indicates that it is configured in the Windows Environmental variables. You will need to remove it from there.
From the Start Menu, open the Control Panel
Repeat this for SVN_SSH.
On my machine, doing these operations DISABLES TortoiseGit. It might be better to fix your Git config to use
TortoiseGitPlink.exe
. There is also aTortoisePlink.exe
in theTortoiseGit/bin
directory - don't use it.TortoisePlink.exe
does NOT work for me.