-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git hangs during SSH session to Windows host #311
Comments
Had to force kill the GCM instances on Task Manager, and VSCode reported:
|
Anyone? |
I'm running a similar setup, and having a similar issue. In my case, the Windows 10 host is also running WSL2 with Ubuntu 20 LTS, and I have configured Windows' OpenSSH server to use On the Windows host, I have a recent version of Git for Windows installed, and Git on Windows is configured to use the Using VSCode Remote-WSL on the Windows host itself, I'm able to connect to repos within the Ubuntu/WSL2 environment and fetch/pull/push to HTTPS remotes on Azure DevOps just fine. The same operations also work if I log into Ubuntu/WSL2 via the command-line (Ubuntu app shortcut, However, when I connect to the WSL2 environment by SSH to the Windows host from my macOS machine -- either directly from a terminal (e.g.
Since everything works when logged into WSL2 on a terminal on the Windows host, but not when logged in on a terminal via SSH from a remote host, I suspect A) it has nothing to do with VSCode, and B) it has something to do with the login session being from a remote machine rather than from the local Windows host. The second line of the error message -- "specified logon session does not exist" -- makes me think that the remote method doesn't have a locally-attached logon session in which GCM Core can do what it needs to do, so GCM Core just fails and Git thus reverts to the standard password prompt. |
Should've looked before posting; guessing #325 is the same underlying issue. |
Hi @brunovieira97, It looks like you're seeing lots of the old GCM for Windows instances (process:
I suspect this is indeed the same issue as in #325. When connecting over SSH, the OpenSSH server does not create a logon session that is sufficient for the WinCred APIs to operate (where we store credentials with the OS). |
I have a Windows desktop that acts as a server for development. On it, latest Git for Windows version with bundled GCM Core.
I'm running VS Code Remote SSH, with its backend on said Windows desktop, and whenever I run a Git command like
pull
, it hangs indefinitely. Accessing the host through RDP shows me a huge number of GCM Core instances.My Code workspace has 15 repositories, but there are 63 instances (!) of the Credential Manager running. Probably VS Code's automatic fetch has something to do with the instance count, but anyway, I think the Credential Manager should work during SSH sessions instead of hanging.
VSCode's Git UI (has been like this for an hour) (client):
VSCode's Git output (client):
GCM instances on the SSH server:
The text was updated successfully, but these errors were encountered: