general/other Is It possible to forward X from windows?

I have a Windows10 Bhyve guest with IP 10.0.0.2 from the host I ssh -Y user@10.0.0.2 xcalc and I get the error X11 forwarding request failed on channel 0
I have installed vcXsrv and I still can't seem to display the Xcalculator on the BSD host from the Windows guest.
 
Hi.
Did you try ssh -X user@10.0.0.2 xcalc ?
Maybe you need to enable the BSD host to accept X connections? (type xhost + in the BSD host)
 
I have a Windows10 Bhyve guest with IP 10.0.0.2 from the host I ssh -Y user@10.0.0.2 xcalc and I get the error X11 forwarding request failed on channel 0
I have installed vcXsrv and I still can't seem to display the Xcalculator on the BSD host from the Windows guest.
Xserver running on windows (xming)
X11forwording yes (sshd_config)
putty - configure X11 forwarding (localhost:10.0)
you need xorg-xauth installed on the host
if you want from ssh than ssh -XY user@host
look for echo $DISPLAY set automatically to localhost:xx:x when you are loged in , if its not there you are missing something.
 
Last edited:
Xserver running on windows (xming)
X11forwording yes (sshd_config)
putty - configure X11 forwarding (localhost:10.0)
you need xorg-xauth installed on the host
if you want from ssh than ssh -XY user@host
The OP is doing it the other way around.
 
I think the key here is in sshd_config on the FreeBSD host:
In this case, on the Windows host. That's the host that's receiving the ssh connection.

Granted, I don't know why the OP wants to run an X application on a Windows host. I suspect the OP thinks it would also forward actual Windows applications, but that's never going to work.
 
In this case, on the Windows host. That's the host that's receiving the ssh connection.

Indeed. I did originally think this and had an elaborate socket/tcp forwarding scheme prepared (i.e ssh -R /tmp/.X11-unix/X2:10.0.0.2:6000)

However on further reading it seems that this part wants to see an xcalc (running on Windows) to appear on the FreeBSD's Xserver.

I still can't seem to display the Xcalculator on the BSD host from the Windows guest.

Baffled. We will await further clarification from OP ;)
 
Baffled. We will await further clarification from OP ;)
I'm baffled how many noise appears on threads started by someone who stays away after the first and only post.
I'm baffled how much time and effort is spent on even on such threads after the "solved" flag was raised.

May it be that it is the case that some are eager showing their most luxury asset: Too much time, and no work due to be done?
 
This is a public place where you get answers you may not like.
No, Its arrogant people like you who thinks that because its a public place they can write and response how ever they want and because of people like you many users are avoiding writing in forums.
 
No, Its arrogant people like you who thinks that because its a public place they can write and response how ever they want and because of people like you many users are avoiding writing in forums.
Pot calling the kettle black. Knock it off.
 
I have a Windows10 Bhyve guest
Why is he doing it encrypted?

He must run the server as: Xorg -listen tcp (when it runs on FreeBSD).
The flag "-listen tcp" is since a while necessary, perhaps also in Windows.
If he starts the server with xinit, he needs exec Xorg -listen tcp in ~/.xserverrc
 
Shouldn't be necessary. Never had to do this to get X-forwarding to work. On any system.

I do believe the crux of the matter is the X11Forwarding setting in sshd_config. If I recall correctly the default value changed from 'yes' to 'no' not too long ago. But I'm unsure what is actually being used on Windows. It does have a builtin SSH service nowadays. It's however unclear what the OP enabled.
 
Shouldn't be necessary. Never had to do this to get X-forwarding to work. On any system.
Perhaps because you use ssh, then the connection to the server is done on the local machine.

My X clients connect to the X server with tcp.

I never used ssh for "X forwarding".
 
Back
Top