OpenSSH:X-Forwarding:错误的授权协议

OpenSSH:X-Forwarding:错误的授权协议

我已经编辑了 /etc/ssh/sshd_config,以便:

AllowAgentForwarding yes
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalHost no

我使用以下命令连接到主机:ssh -X

然而,当我尝试打开 Firefox 时,我得到:

GLib-CRITICIAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
PuTTY X11 proxy: wrong authorisation protocol attempted
PuTTY X11 proxy: wrong authorisation protocol attempted
Error: cannot open display: <ip>:10.0

我使用运行 Xming 服务器和 putty 的 Windows 8 主机进行连接。我尝试使用 Linux 主机 (Ubuntu) 进行连接,但出现以下错误:

GLib-CRITICIAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
X11 connection rejected because of wrong authentication

echo $DISPLAY在连接的主机中使用when 确实会给我一个显示。并xauth list显示我的 magic-cookie。

答案1

我找到了答案。

确保以下选项设置为是:

X11UseLocalhost yes

确保 /etc/hosts 包含以下内容:

127.0.0.1 localhost

相关内容