We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
使用 ssh -X 登录服务器出现如下错误:
ssh -X
X11 forwarding request failed on channel 0
查看 /etc/ssh/sshd_config, 允许 X11 转发已经是打开的.
/etc/ssh/sshd_config
X11Forwarding yes
网上查到该问题, /var/log/auth.log 下有如下错误:
/var/log/auth.log
Apr 4 21:20:46 AY140330144942734002Z sshd[24663]: error: Failed to allocate internet-domain X11 display socket.
原因是 sshd 尝试绑定到 ipv6 时失败, 解决办法是 sshd_config 添加如下配置:
sshd
sshd_config
AddressFamily inet
然后重启 sshd 服务:
或者正确设置系统 ipv6 ?
相关链接: