yum -y install xorg-x11-xauth
vim /etc/ssh/sshd_config
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no #有的服务器必须得设置这个为no,要不总也不正常,搞了很长时间
标签:no,supported,disabled,x11,yes,forwarding
From: https://www.cnblogs.com/liulianzhen99/p/17168241.html