xshell出现WARNING!The remote SSH server rejected X11 forwarding request.

使用xshell第一次连接时,可能会连接多次才能连上,出现:WARNING!The remote SSH server rejected X11 forwarding request.

xshell出现WARNING!The remote SSH server rejected X11 forwarding request.

解决方法:

vi /etc/ssh/sshd_config ?在X11这行改为X11Forwarding yes,
然后再将UseLogin参数为no,可能这一行最开始是被注释,去掉注释,保存之后重启sshd服务,重新连接即可

xshell出现WARNING!The remote SSH server rejected X11 forwarding request.

重启ssh服务

[root@wugenqiang?~]#?systemctl?restart?sshd

如果还不行检查 xorg-x11-xauth 的rpm包是否安装,未安装则进行下面操作

[root@wugenqiang?~]#?yum?install?xorg-x11-xauth

xshell出现WARNING!The remote SSH server rejected X11 forwarding request.

测试重新连接:

xshell出现WARNING!The remote SSH server rejected X11 forwarding request.

successful!!

xshell出现WARNING!The remote SSH server rejected X11 forwarding request.

上一篇:Linux - last 命令(Mac 电脑)


下一篇:linux oom 机制