Cannot start firefox on X11 forwarding SSH session

39,272

I had the same problem while running firefox on an Ubuntu 18.04 system through MobaXterm. Solution was to install xorg and openbox and then logging in again.

Share:
39,272

Related videos on Youtube

dfsg76
Author by

dfsg76

Updated on September 18, 2022

Comments

  • dfsg76
    dfsg76 over 1 year

    I have installed Ubuntu Desktop 16.04.2 LTS and want to start firefox from my X11 forwarding ssh session but I get the following error message:

    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
    

    I am using the latest version of BitVise SSH Client

    The settings in my SSH client look like this: click here for X11 client settings

    My sshd_config looks like this:

    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
    

    What am I doing wrong?

    • Admin
      Admin almost 7 years
      Oh, I figured out that this works on an Ubuntu client. Is there any way to make this cross platform compatible?
    • Admin
      Admin almost 7 years
      What platform(s) are you running it on? Does BitVise SSH Client actually provide an X server, or does it just set up the forwarding for a 3rd party X server - if the latter, what X server are you running?
    • Admin
      Admin almost 7 years
      I manged to get it working using MobaXterm on Windows
    • Admin
      Admin almost 7 years
      @pudelwudel How did you configure a) MobaXterm and b) your Ubunut machine. Google lead me to this page, because I also have issues with X11, mobaxterm and Ubuntu 16.04.
  • Hee Jin
    Hee Jin almost 6 years
    Hi Gh0st. I'm curious to know more about how you came to this solution and why this worked!