x11-forwarding disabled or not supported by server

img

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,要不总也不正常,搞了很长时间,这个是重点啊 

posted @ 2023-03-01 15:12  寻梦99  阅读(759)  评论(0编辑  收藏  举报