【发布时间】:2021-02-17 04:29:42
【问题描述】:
我试图在我的 Mac 上从 WSL2 使用 x11 应用程序,但每当我 ssh 进入机器时,我都会收到以下警告:
X11 forwarding request failed on channel 0
而echo $DISPLAY 返回空白。
在服务器中,我尝试在 sshd_config 文件中编辑 X11 选项,在 X11 UseLocalhost 上的 yes 和 no 之间交替,将 AddressFamily 编辑为 inet,使用 export DISPLAY=localhost:0.0。没有任何效果。
到目前为止,我已经设法在装有 VcXsrv 的 WSL 的 Windows 机器上使用 X11,但从未从外部机器远程使用。
【问题讨论】:
标签: macos ssh x11 wsl-2 x11-forwarding