-
Notifications
You must be signed in to change notification settings - Fork 293
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
Can't connect to windows using ssh server version 8.9+ #7272
Comments
I tried SSH from another windows 11 machine, and it succeeded. I guess this issue is due to some incompatibility between OpenSSH, which is used on macOS and Linux, and Win32-OpenSSH, which is used on Windows. |
I have the same problem, connecting from my Linux machine into Windows. It has been reported here as well: #6559 I checked and after Windows Update 22H2 the OpenSSH version indeed changed. Please note that, as far as I understand:
So whoever is responsible for bundling the version with Windows updates, should fix the version, otherwise people are stuck with an out of date Windows. |
Could you figure out which version of the OpenSSH server you have? You are able to add this setting |
Thanks, that setting fixed the problem. Also here are the versions of OpenSSH installed on the Windows PC: "Non-working" version (after WIndows 22H2 update): The "working" version is: Edit |
The setting fixed the problem for me as well. Thanks! |
This looks like a regression of PowerShell/Win32-OpenSSH#1545
With the 8.9.1 beta from https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.9.1.0p1-Beta
And given your results above, it actually looks like the released 8.6 has the same problem. Could you try those two commands ( |
I could perfectly connect to all my ssh connections with visual studio code and now that I updated to windows 11 22H2 it doesn't work. When will this be fixed, it's a crucial issue..? |
Hello @eleanorjboyd. Setting it where? And what should you be the "YOUR_HOSTNAME" tag? Thanks, |
you can put it in your settings.json and that should work and your host name is the name of your remote host you are trying to connect to like this example below of what your ssh config looks like: |
Hi @eleanorjboyd! Thank you for your answer. No it doesn't :/ Also my remote host is a linux host not a windows one and even changing that doesn't fix the issue. BTW I can totally connect through wsl. |
@ysig Can you open a new issue for this since we know it is not related to the above fix and is on a different machine type? I will respond to investigate it further there but want to create a new thread to not clutter this one. Thanks! |
What should I log though?
…On Wed, Nov 16, 2022 at 6:24 PM Eleanor Boyd ***@***.***> wrote:
@ysig <https://github.com/ysig> Can you open a new issue for this since
we know it is not related to the above fix and is on a different machine
type? I will respond to investigate it further there but want to create a
new thread to not clutter this one. Thanks!
—
Reply to this email directly, view it on GitHub
<#7272 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGY7H2PRRMIEFSI3U7EMSODWIUKEJANCNFSM6AAAAAAQ2ET4MA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ysig logs from remote-ssh would be great! You can find them through going to the |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Why is this closed? Same issue. Can ssh fine but vscode-remote barfs on a broken pipe. @eleanorjboyd I used @shanselman setup Windows 11 side, https://www.hanselman.com/blog/the-easy-way-how-to-ssh-into-bash-and-wsl2-on-windows-10-from-an-external-machine I am using vscode 1.74.0 on MacOS M1 Ventura to connect. WSL is ubuntu 22.04 LTS. Looks like ~/.vscode/extensions/ms-vscode-remote.remote-ssh-0.94.0/out/local-server/askpass.sh is the script it calls? 14:33:21.281] Log Level: 2 [14:33:21.437] askpass server listening on /var/folders/vy/1f7ldlk14z77k1t9rk0b_wzr0000gn/T/vscode-ssh-askpass-0a970b9e17f857933d77da8376cb504a4eef35fa.sock [14:33:28.562] Failed to parse remote port from server output |
I think I fixed it? I disabled use local server and I set remote.SSH.connectTimeout to 60 seconds. #1761 should be re-opened? 60 seems like a more sane setting. Would it be better to ssh in and run this, then connect with the client?: curl -fsSL https://code-server.dev/install.sh | sh |
Hello! Could you try steps 2 and 3 of this guide and let me know the outcome? Also could you try increasing your ssh connection timeout to 30 from 15. Thanks! https://github.com/microsoft/vscode-remote-release/wiki/Debugging-for-Remote-SSH |
I just ran into this problem and the solution was to set
|
Thanks @provos , more detailed information can be found in VSC‘s docs |
steps to verify:
|
The issue is similar to #6348, but different.
I was able to SSH to the remote machine (Windows 11) from VScode successfully before, but after some windows updates on the remote machine, SSH doesn't work anymore. The issue is reproducible when I use either a macOS machine or a Ubuntu machine as the local machine.
Now I can SSH to the remote computer from terminal, but fail from VScode.
Does this issue occur when you try this locally?: No
I tried SSH on the remote computer to itself (via IP) using VScode, and it succeeded.
Thanks
The text was updated successfully, but these errors were encountered: