WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

X11 Forward Not Work

Open ElvisTan opened this issue 3 years ago • 8 comments

windterm version: 2.1.0 client system: win10 and win7 server system: centos 8

ElvisTan avatar Oct 27 '21 08:10 ElvisTan

Because I don’t have your environment and cannot reproduce it, please help me to do the following tests:

  • Check whether Session Settings Dialog - SSH - SSH - X11 - Internal X display has been checked.
  • After opening the session, check whether there is an Xming.exe X Server process in the system task manager.
  • Execute the command echo $DISPLAY in the session and check if the result is similar to localhost:0.

If all the above steps are consistent with the expected results, then X11 Forwarding should be available, and I will continue to investigate the issue. If not, that is maybe the cause of the problem.

kingToolbox avatar Oct 27 '21 12:10 kingToolbox

Do I need to start xming.exe manually? 1

ElvisTan avatar Oct 28 '21 02:10 ElvisTan

No, you don't need to start XMing.exe manually. When you open the SSH session, the session will start XMing.exe automatically. You just need to check if XMing.exe exists in the system task manager after opening the session.

kingToolbox avatar Oct 28 '21 04:10 kingToolbox

I enabled X11, and when I open the ssh session, there was no xming.exe in task manager

ElvisTan avatar Oct 28 '21 04:10 ElvisTan

Are you logged in? If there is no XMing.exe process after logging in, I think this is maybe the problem. Then please go to the directory WindTerm_install_path/vendors/xming and double-click XMing.exe, can XMing.exe start normally?

kingToolbox avatar Oct 28 '21 06:10 kingToolbox

double-click XMing.exe, XMing.exe can run normally。I don't know what went wrong,I use vcxsrv and it works fine

ElvisTan avatar Oct 28 '21 06:10 ElvisTan

Sorry, I just noticed the error message in your screenshot: Channel request x11-req failed.

This shows that your server does not allow X11 forwarding. You can check your server sshd configuration to see if X11 forwarding is turned on: X11Forwarding yes.

In addition, you can also set Session Property - SSH - SSH - X11 - X11 Display to External X display and fill the display and port of your vcxsrv, so you can use vcxsrv instead of the built-in XMing. In subsequent versions, there are plans to replace XMing with vcxsrv too.

kingToolbox avatar Oct 28 '21 06:10 kingToolbox

@kingToolbox double-click Xming.exe, XMing.exe can run normally. but ten seconds later, it disappears from task manager. what's wrong?

rty813 avatar Jan 09 '23 09:01 rty813