0

I want to ssh to a Linux device in Windows with X11 forwarding using OpenSSH. I've installed the xming server running on DISPLAY=:0 and set the environment variable using my powershell profile and system environment variables, all works fine with PuTTy.

But I want to ssh with X11 using the built-in OpenSSH, accessible via PowerShell and Command Prompt, not PuTTy. Any ideas on how to get this working?

So far I can ssh with the -X flag, but once authenticated - the error returned is...

ssh -X -Y root@jh-lenovo-lap1
Warning: No xauth data; using fake authentication data for X11 forwarding.
James Hopwood
  • 60
  • 1
  • 8
  • As far as i know, windows builtin ssh does not support X forwarding. So its simply not possible – Malik Dec 04 '20 at 10:15
  • @Malik Well that sucks But I won't give up hope just yet, surely considering how long xming has been around and that OpenSSH is open-source; someone has compiled some kind of OpenSSH client for windows that integrates with xming and powershell/cmd for x11 support? – James Hopwood Dec 04 '20 at 10:27
  • 1
    It seems possible with openssh in Windows Subsystem for Linux https://superuser.com/questions/1332709/setting-up-x11-forwarding-over-ssh-on-windows-10-subsystem-for-linux – Malik Dec 04 '20 at 10:38
  • To build on @Malik's comment, Microsoft has no intent to port X11 forwarding into Win32-OpenSSH, and there's ~20 or so option features that won't be ported listed on Microsoft Docs. – JW0914 Dec 04 '20 at 16:07
  • @JW0914 Do you have a link to that document? I'd like to read it. – James Hopwood Dec 08 '20 at 08:30
  • @Malik I was thinking that was a possibility, but I'm looking for something a lot more native than virtualization just to get it, hence why I disregarded putty in this post. – James Hopwood Dec 08 '20 at 08:31
  • @JamesHopwood Microsoft Docs; GitHub seems to imply I may have been wrong on it never going to be ported over, which was the last position I had read from one of the Microsoft devs a little over a year ago. – JW0914 Dec 08 '20 at 15:03

0 Answers0