无法在 X11 转发 SSH 会话上启动 firefox

Chr*_*ian 12 ssh xorg x11-forwarding

我已经安装了 Ubuntu Desktop 16.04.2 LTS 并想从我的 X11 转发 ssh 会话启动 firefox,但我收到以下错误消息:

user@user-Virtual-Machine:~$ firefox
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Broadway display type not supported: localhost:10.0
Error: cannot open display: localhost:10.0
Run Code Online (Sandbox Code Playgroud)

我正在使用最新版本的 BitVise SSH 客户端

我的 SSH 客户端中的设置如下所示: 单击此处查看 X11 客户端设置

我的 sshd_config 看起来像这样:

Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 1024
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

小智 6

我在通过 MobaXterm 在 Ubuntu 18.04 系统上运行 firefox 时遇到了同样的问题。解决方案是安装xorg和openbox,然后重新登录。

  • 嗨Gh0st。我很想知道更多关于你是如何找到这个解决方案的以及为什么它有效! (6认同)