xshell远程连接出现WARNING! The remote SSH server rejected X11 forwarding request.

解决办法:
编辑sshd配置文件 vi /etc/ssh/sshd_config 设置

X11Forwarding yes
UserLogin no //原本的注释解开
yum install -y xorg-x11-font xorg-x11-xauth

重新连接xshell

转载:https://blog.csdn.net/lz9009/article/details/98956963

--------------- 我每一次回头,都感觉自己不够努力,所以我不再回头。 ---------------
原文地址:https://www.cnblogs.com/zjw-blog/p/14137822.html