
# 使用Xshell连接不上云服务器，报错：WARNING! The remote SSH server rejected X11 forwarding request.
#### 问题描述
使用Xshell连接不上云服务器，提示"WARNING!The remote SSH server rejected X11 forwarding request."报错，具体报错信息如下图所示。
![](https://support.huaweicloud.com/trouble-ecs/zh-cn_image_0000002156256617.png "点击放大")
#### 可能原因
openssh版本进行了升级。
#### 处理方法
1. 登录弹性云服务器。
2. 执行以下命令，编辑/etc/ssh/sshd_config文件。 **vi /etc/ssh/sshd_config**
   
3. 修改如下配置项：
   - X11Forwarding参数修改为：yes
   
   - UseLogin参数去掉前面的注释，并修改取值为no
   
   
   修改结果如下图所示：
   ![](https://support.huaweicloud.com/trouble-ecs/zh-cn_image_0000002120858404.png)
   
4. 执行以下命令，重启ssh服务。 **systemctl restart sshd**
   
5. 执行以下命令，安装xorg-x11-xauth软件包。 **yum install xorg-x11-xauth**
   
6. 重启云服务器。 **reboot**
   
 
