Solution for unusable xmanager passive function under Linux

  
                

xmanager Passive can transfer graphics only when you log in to the ssh character interface, which is popular with many developers. A user has to adjust the firewall, xmanger passive function can not be used normally, how do we deal with this problem? Is it caused by the adjustment of the firewall? Please discuss with Xiaobian.

as follows:

1, the login host ssh

[root @ linuxidc ~] # export DISPLAY = 10.6.90.41: 0.0

[root@linuxidc ~]# xclock

Error: Can't open display: 10.6.90.41:0.0

2, the host captures the packet and displays the X11 port to the client. >

tcpdump -i bond0 host 10.6.90.41

14:34:10.331583 IP linuxidc.12854 > 10.6.90.41.x11: S 782296038:782296038(0) win 5840

14:34:16.331562 IP linuxidc.12854 > 10.6.90.41.x11: S 782296038:782296038(0) win 5840

14:34:28.331564 IP linuxidc.12854 > 10.6.90.41.x11: S 782296038:782296038(0) win 5840

14:34:52.331601 IP linuxidc.12854 > 10.6.90.41.x11: S 782296038:782296038(0) win 5840

14:35: 40.332611 IP linuxidc.12854 > 10.6.90.41.x11: S 782296038:782296038(0) win 5840

3, the client uses wireshark to capture packets, confirming that the client did not receive the packet. This indicates that the package is blocked by the firewall

4, using the 360 ​​firewall function to view, the xmanger software is listening on the 6000 port

5, the Internet search, 6000 is indeed the default port of X11

6000/tcp X11 - used between an X client and server over the network Official

6001/udp X11 - used between an X client and server over the network Official

6, Network Engineer Help to open the relevant port, the function can be used normally

Summary: This shows that using the xmanger passive function, in addition to using the ssh 22 port, it also requires the server to the client's 6000 port communication.

The above is the trick to handle the Xmanager passive function. If friends and friends have a more convenient way, you can also interact with the Xiaobian message.

Copyright © Windows knowledge All Rights Reserved