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

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

问题描述

使用XShell6连接CentOS7时,一直出现WARNING!The remote SSH server rejected X11 forwarding request的问题,如下所示:

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Wed Oct  7 23:30:50 2020 from 192.168.174.1
[root@localhost ~]# 

解决办法

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

[root@localhost ~]# yum -y install xorg-x11-xauth

完成以上操作后,一定要断开终端连接,重新进入即可。

上一篇:Android:Gradle sync failed: Another 'refresh project' task is currently running for the project


下一篇:Centos安装jmeter