WARNING! The remote SSH server rejected X11 forwarding request
时间:2023年05月07日
/来源:网络
/编辑:佚名
环境
win10 + XShell7 + docker desktop + centos 7
问题
使用xshell7登录centos7 docker容器,登录速度很慢,并且报错如下:

在网上找了很多帖子,都没有解决我的问题。最后自己一番摸索后,解决如下。
解决方法
安装X11 Forwarding相关软件
yum install xorg-x11-xauth
修改ssh配置
打开ssh的配置文件,按照下图所示进行配置。

复制代码
vim /etc/ssh/sshd_config
#允许进行 X11 转发。
X11Forwarding yes
X11UseLocalhost no
#提高我们连接linux的速度。
UseDNS no
复制代码
重新启动ssh
systemctl restart sshd.service
退出docker后重新登录,可以看到登录速度快了很多。warning也消失了。
win10 + XShell7 + docker desktop + centos 7
问题
使用xshell7登录centos7 docker容器,登录速度很慢,并且报错如下:

在网上找了很多帖子,都没有解决我的问题。最后自己一番摸索后,解决如下。
解决方法
安装X11 Forwarding相关软件
yum install xorg-x11-xauth
修改ssh配置
打开ssh的配置文件,按照下图所示进行配置。

复制代码
vim /etc/ssh/sshd_config
#允许进行 X11 转发。
X11Forwarding yes
X11UseLocalhost no
#提高我们连接linux的速度。
UseDNS no
复制代码
重新启动ssh
systemctl restart sshd.service
退出docker后重新登录,可以看到登录速度快了很多。warning也消失了。
新闻资讯 更多
- 【建站知识】查询nginx日志状态码大于400的请求并打印整行04-03
- 【建站知识】Python中的logger和handler到底是个什么?04-03
- 【建站知识】python3拉勾网爬虫之(您操作太频繁,请稍后访问)04-03
- 【建站知识】xpath 获取meta里的keywords及description的方法04-03
- 【建站知识】python向上取整以50为界04-03
- 【建站知识】scrapy xpath遇见乱码解决04-03
- 【建站知识】scrapy爬取后中文乱码,解决word转为html 时cp1252编码问题04-03
- 【建站知识】scrapy采集—爬取中文乱码,gb2312转为utf-804-03