【Linux】如何消除“The remote SSH server rejected X11 forwarding request”警告?
症状
Connecting to xx.xx.xxx.xx:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Wed Jun 7 00:22:55 2023 from xxx.xxx.xxx.xxx
使用xshell连接服务器时,出现了“WARNING! The remote SSH server rejected X11 forwarding request.”,意思是“远程SSH服务器拒绝X11转发请求。”
解决方案
X11 forwarding依赖xorg-x11-xauth软件包,需要先安装xorg-x11-xauth软件包。
使用Xshell执行下面代码
yum install xorg-x11-xauth -y
- 等待安装完成,断开重新连接即可消除警告。