xshell登录服务器报错:The remote SSH server rejected X11 forwarding request.

原因是对openssh版本进行了升级
vim /etc/ssh/sshd_config
将其中X11Forwarding参数为yes,UseLogin参数为no
如果还不能解决,可以设置xshell的属性,点击”属性“中的”隧道“,然后将下面”转发x11到连接(x)“够选去掉即可解决问题。

猜你喜欢

转载自blog.csdn.net/weixin_38371657/article/details/86568719