xshell登录到CentOS7上时出现“The remote SSH server rejected X11 forwarding request.

 yum install xorg-x11-font* xorg-x11-xauth

然后将:etc/ssh/sshd_config文件中
              X11Forwarding参数为yes
              再将UseLogin参数为no(可能这一行最开始是被注释,去掉注释即可解决)

posted @ 2019-02-27 16:12  潜渊  阅读(460)  评论(0)    收藏  举报