解决 Xshell 连接出现 The remote SSH server rejected X11 forwarding request 问题

问题描述

使用 Xshell 5 首次连接虚拟机 CentOS 7.6 出现这样的提示:

WARNING! The remote SSH server rejected X11 forwarding request.

经搜索得知原来是... 此处省略一大段原理。

解决方法

yum install xorg -x11 -xauth -y

安装完成后再次登录,问题解决。但是,却出现了一个新的问题:

/usr/bin/xauth: file /root/.Xauthority does not exist

提示文件不存在,这个只需要退出再次登录即可,系统会自动创建。

参考资料

https://blog.csdn.net/RBPicsdn/article/details/81046660

http://blog.51cto.com/jdonghong/1956759

猜你喜欢

转载自www.cnblogs.com/walixz/p/10349714.html