-
Notifications
You must be signed in to change notification settings - Fork 134
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
WIndows to Windows OpenSSH: Shell opener command was unsuccessful: client_loop: send disconnect: Connection reset #257
Comments
This is probably related to #235 In short, Windows OpenSSH has always caused some problems. What you can try is running the command in the terminal with Most users that had to deal with Windows SSH problems used WSL as a gateway in xpipe when creating SSH connections, that works fine. So it's definitely isolated to Windows. |
But since this is getting quite frequent now, do you have anything enabled like special firewall settings? The problem with the Windows SSH issues were that I was never able to reproduce them. |
Yes, I run MalwareBytes' "Windows Firewall Control" for strict inbound/outbound blocking with prompting for unrecognized connection attempts. However, I do not observe any meaningful/relevant firewall log entries at the time of the failure on the host or client machines. I have a background in software QA and would love to assist you in debugging this issue :) |
Would it be possible to just temporarily disable some/these rules to check whether they are interfering with the connection? |
Completely disabled the firewall on both machines, no change :( |
Do you have WSL set up? |
Yup. I can work around it with WSL if necessary, but was hoping to get a direct connection to Windows pwsh working as I do run a fair number of powershell scripts. fwiw I can confirm that:
|
The thing is that the You could install pwsh in your WSL, that is also supported there. You could install msys2/mingw/git for windows, that one has a straight port of the ssh executable as well that you can add to the PATH. |
Ohoho, possibly relevant: microsoft/vscode-remote-release#6521 Since you aren't able to reproduce the issue, can you tell me what version of OpenSSH you have installed on your Windows device (if you have one, of course)? It looks like the version installed via Windows' "features" is 8.6. I'm going to try installing a more recent version via winget and see if that resolves the issue.... |
I tested with multiple versions, they all work for me on multiple devices. It seems to be a more system specific issue. |
If you really want to spend time with this, the only thing that xpipe can do is pass some specific SSH options with |
Upgrading to the latest version (9.5 beta) of OpenSSH (plus the obligatory system reboot) works. Guidance for future users: On the host machine, run the following from a Powershell prompt... |
That is good to know. I tested with 8.1p1 and 9.5 back then and they both worked |
So interestingly I'm now facing the same issue as I'm working on a feature that starts up a custom sshd. For my testing, if I run |
I wonder if the Service registration and the Path env var are pointing at different executables in your setup? |
I tried it a little bit more and can confirm that it is caused by the service. I only run the system default sshd, no custom installation because that is what I have to work with in xpipe. If I run sshd manually it will fail always, regardless of which user runs it. If I create a service for it and start this service, it works. |
I managed to run the default Windows sshd on a user level without service with this configuration
|
This is now closed in favour of #340 which is a pinned issue and offers a solution without having to read the full thread |
DESCRIPTION
When trying to connect from XPipe on Windows 11 to another Windows 11 device running OpenSSH (with pwsh 7 as the default shell on the remote machine), the connection fails due to a connection reset. Issuing the command defined in "Insights" from a local pwsh shell manually succeeds normally.
STEPS TO REPRODUCE
RESULT
NOTES
Tested using both Windows' default OpenSSH and XPipe-bundled OpenSSH binaries
The following command from 'Insights' succeeds from a local pwsh7 shell:
ssh [email protected] -oStrictHostKeyChecking=accept-new -oRemoteCommand=none -oNoHostAuthenticationForLocalhost=yes -t
The text was updated successfully, but these errors were encountered: