-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Git clone with Windows 10 SSH.EXE: unexpected disconnect while reading sideband #3080
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
Comments
Does it work when you do not override |
Actually, I just found this. I see some comments on there from you too @dscho : Early EOF errors when running git fetch over ssh |
It works if I do not override |
@kstrophus you may want to try again once a Git build was released that contains git-for-windows/build-extra/pull/367 – it makes choosing your preferred OpenSSH for Git way easier. As far as I can tell there're two-ish things going on:
I am not sure whether these deficiencies can be addressed here. I would assume bundled SSH's inability to talk to Windows' ssh-agent should be addressed in the upstream project. External OpenSSH being unstable is definitely not a Git issue I'd say. |
Since Git for Windows v2.33.0 was released with the option to prefer the system OpenSSH, I'll close this ticket. |
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue)
Updated GIT_SSH to use the Windows 10 System32\SSH.EXE in order to take advantage of the new native OpenSSH Authentication Agent now included with the system. It remembers the SSH certificate passwords nicely.
Tried to clone a big repo after.
What did you expect to happen? (Expected behavior)
Clone of repo success.
What happened instead? (Actual behavior)
"unexpected disconnect while reading sideband" error
What's different between what you expected and what actually happened?
The repo did not clone at all.
Anything else you want to add:
Removing the GIT_SSH override solves it but then presents the SSH cert password prompt every...bloody...time.
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.30.1.windows.1
cpu: x86_64
built from commit: ca911fc
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
uname: Windows 10.0 18363
compiler info: gnuc: 10.2
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe
[Enabled Hooks]
not run from a git repository - no hooks to show
The text was updated successfully, but these errors were encountered: