美文网首页
Linux-连接后警告?The remote SSH serve

Linux-连接后警告?The remote SSH serve

作者: 极客123 | 来源:发表于2018-10-07 13:49 被阅读0次

The remote SSH server rejected X11 forwarding request.

解决办法:yum install xorg-x11-font* xorg-x11-xauth

远程主机是 OpenSSH


编辑/etc/ssh/sshd_config
设置X11Forwarding yes


取消勾选

image.png

1.首先修改配置文件

1.1远程主机是 OpenSSH

编辑 /etc/ssh/sshd_config,

设置 X11Forwarding yes


远程主机是SSH.COM


编辑/etc/ssh2/sshd2_config
设置 AllowX11Forwarding yes


其原因是可能对openssh版本进行了升级。

解决方法为:

        yum install xorg-x11-font* xorg-x11-xauth
       /etc/ssh/sshd_config文件中
              X11Forwarding参数为yes
              再将UseLogin参数为no,可能这一行最开始是被注释,去掉注释即可解决。

相关文章

网友评论

      本文标题:Linux-连接后警告?The remote SSH serve

      本文链接:https://www.haomeiwen.com/subject/tcjlaftx.html