-
Notifications
You must be signed in to change notification settings - Fork 767
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
Support X11 Forwarding #1515
Comments
@manojampalam mentioned support for this (or lack thereof) in #1438.
Our use-case for this is VSCode's Remote-SSH extension, which we'd like to use to connect to a remote development machine and then forward the X-Window of an Android Emulator back, so that we can do Flutter development remotely. -- Edit: Also related: #1181 -- Edit 2: For anyone reading this that wants X11 for remote Flutter dev, we decided that using |
So I was looking into implementing this and turns out, it already works in @manojampalam Any updates on when a new copy will ship with Windows? @pd93 If you grab newer binaries, your scenario should be unblocked! |
@riverar - We are shipping OpenSSH V8.1 in next windows release that might be available in July 2020. |
@bagajjal That's great news, thanks! We should try to get that |
Sure, please submit a PR. |
@riverar Amazing. Thanks for the info. I've already manually updated v8.0 in order to get |
@bagajjal can you confirm the 8.1 update made it into Windows 10 version 2004? |
@jasonzio - v8.1 goes into the next release (not into win10 version 2004) available during fall time. |
Why is OpenSSH an optional FOD component if you're going to not deliver outside the OS schedule? Seems way too long wait for updates. |
@bagajjal I've seen 3 different people say the same thing 3 times now - that the latest version of OpenSSH will make it into the "next" version of Windows. It never happens :/ I agree with @riverar. Microsoft really need to review their commitment to OpenSSH and begin to ship updates on a regular basis. It's simply ridiculous that something as fundamental as SSH only gets an updated every 2 years. Especially with so many outstanding bugs in the "current" version (7.9). |
@riverar - We can't go the route of the windows store as ssh is been used in different windows SKUs that wouldn't get the update if we go down that route. @pd93 - you need to understand the latest version will be part of next release that will be available in fall season. I have been consistent on the time line when the fix will be available. I agree there is a quite a delay in getting the new version but it's because of the resource allocation towards this project and windows release timelines. Going forward, I'm committed to get the latest version of openssh into every windows update. |
@bagajjal I wasn't suggesting the Microsoft Store; was just wondering why it's a Feature On Demand / Optional Feature if it's just going to ship twice a year with the OS. But sounds like you covered the reason -- resource allocation. Thanks for the response! |
@riverar - Twice a year update happened because of several reasons (like resource shuffling, project funding, priorities towards other projects, windows timeline). As I mentioned, I will make sure I ship the latest and greatest from the next windows release. |
@bagajjal Apologies if I sounded too critical. Have just been slightly frustrated by the timeframes (or lack thereof). The replies and clarification here are greatly appreciated. Looking forward to testing it out later this year. |
Hi @bagajjal , I'm also looking forward to the newest openssh which supports X11 forwarding. I've installed the preview of Windows10 20H2, but the version of openssh is still v7.7. Will the official release of 20H2 ship with openssh v8.1? |
It's part of windows fall update which is yet to come. I see it's planned to release on 10/2/2020. |
How do you setup X11 with Powershell core? |
@zuboje Please see the pinned issue logged by a MSFT employee. This explains why an update OpenSSH was not included in 20H2 |
Hi @riverar , I've installed openssh v8.1 and VcXsrv on my windows10 pro. But it still shows can't open display. Can you give a simple example how to use x11 forwarding with openssh and powershell? |
I got it working with my win 10 pc
if in
if in
still need to figure out how will it work in |
On Microsoft Terminal, we can set like this: PowerShell -Command "$env:DISPLAY='localhost:0.0'; ssh.exe -Y 192.168.182.128" Besides, we need to run an additional x11-server program, I found MobaXterm work well.(We must install MobaXterm first. If there is a better way, please tell me.) C:\Users\${USERNAME}\Documents\MobaXterm\slash\bin\XWin_MobaX.exe -silent-dup-error -notrayicon -nolisten inet6 -hostintitle +bs -clipboard -nowgl -multiwindow -noreset :0 |
Requesting X11 Forwarding Feature
Looking through the docs I see:
But I can't see why these features can't be implemented. I can successfully forward X11 using PuTTY or Ubuntu on WLS with Xming. So why can't I achieve this with OpenSSH on PowerShell?
X11 forwarding is incredibly important to my work and whenever I need it I find myself enabling WLS or switching to a Linux distro, which is pretty inconvenient when I need Windows. I'm sure I'm not the only user with this issue.
I've tried a few different configurations to get this working but I always get the same errors:
Things I've tried:
I've tried various other options as well like disabling X11 authentication as I've come back to try and solve this issue several times on my end.
If there is a way to configure OpenSSH to work with Xming or VcXsrv please add it to the docs.
"OpenSSH for Windows" version
8.0.0.0
Server OperatingSystem
CentOS release 5.11 (Final)
Client OperatingSystem
Windows 10 Pro
The text was updated successfully, but these errors were encountered: