x11-forwarding disabled or not supported by server
yum -y install xorg-x11-xauth
apt install x11-apps
apt install xorg
vim /etc/ssh/sshd_config
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no #有的服务器必须得设置这个为no,要不总也不正常,搞了很长时间,这个是重点啊