SSH suddenly stopped working in git-bash on Windows 10
I have been using git-bash in Windows 10 (Version 10.0.17134.1069) for a year now.
Since last week my SSH commands just hangs. It looks like this:
The process eats up 12% percent of the CPU and hangs. It also affects my GitHub pull and push. This is the path of my ssh C:\Program Files\Git\usr\bin\ssh.exe
this is how it looks:
I use Choco for program installation in Windows 10. Here is how is Git version:
Solution 1:
I've got the same issue with mysysgit 2.28.0 in Windows 10 2004 and I've opened a ticket at https://github.com/git-for-windows/git/issues/2822 for further analyzation of this issue. I did some investigation with WinDbg and in my case it looks like this is related to ACL- or Hostname-Resolution.
As a workaround I've installed OpenSSH for Win32 (https://github.com/PowerShell/Win32-OpenSSH) using the Chocolatey package manager (see https://chocolatey.org/packages/openssh/8.0.0.1 for more information). Then I set the environment variable GIT_SSH_COMMAND
to "C:\Program Files\OpenSSH-Win64\ssh.exe"
. After that git push/pull/etc. worked for me again.
Addendum 2020-10-20
I found out that the problem was caused by the epclient64.dll
which belongs to Citrix Workspace VPN client software (this can be done using strace
command). After uninstalling Citrix Workspace from my computer ssh.exe
from mysysgit doesn't hang anymore. Furthermore I found out that the problem doesn't occur when I install the Citrix Worspace App from the Windows Store instead of using the Installer from the Citrix Download Site (https://www.citrix.com/de-de/downloads/workspace-app/windows/).