X11 Forwarding Broken on Solaris

If you’re running Solaris 8 or 9 and an upgrade results in broken SSH X11 forwarding, the problem may be Sun’s socfs bug. The symptom will be SSH’s failure to set the $DISPLAY variable and an error in your system log looking something like this:

Jun 3 09:40:24 servername sshd[26432]: [ID 800057 auth.error] error: Failed to allocate internet-domain X11 display socket.

To fix this, you can either install Sun’s latest socfs patch for your version of the OS, or simply force sshd into IPv4 mode by doing the following:

Edit you sshd_config file, adding the following:

# IPv4 only
ListenAddress 0.0.0.0

Edit your sshd startup script to issue a “-4″ to sshd on start:

case “$1″ in
’start’)
echo ’starting ssh daemon’
/usr/local/sbin/sshd -4
;;

Restart sshd, and that should pretty much do it… Enjoy.

Discuss This Article


4 Responses to “X11 Forwarding Broken on Solaris”

  1. ckgreenman on June 16th, 2008 11:35 am #

    This appears to also affect Solaris 10. To work around the issue in 10 simply edit /lib/svc/method/sshd and append the ‘-4′ to the start function. once the file is saved simply issue ’svcadm restart ssh’

  2. Brett on July 22nd, 2008 5:32 pm #

    THANK YOU!!!! I dont have a cd/dvd drive on my sun netra x1 so a reinstall is pretty much a no go. You saved my system!

  3. Jeremy Idol on August 29th, 2008 11:13 am #

    Current patch created the problem for systems what only use IPv4. The solution, until a binary resolution is provided, is to config up an IPv6 localhost interface as such:

    ifconfig lo0 inet6 plumb up

    Which brings up:

    lo0: flags=2002000849 mtu 8252 index 1
    inet6 ::1/128

    Ensure the /etc/hosts as the following entry as well:

    ::1 localhost

    This will bring up a ipv6 localhost interface, which allows the forwarding over X11 to operate without a problem. Recycle the ssh daemon and it should work without a problem.

  4. Joao Martins on August 29th, 2008 12:14 pm #

    I don’t know better way to express my gratitude for your help: Thank you.


Got something to say?






Post Tags (user submitted): Failed to allocate internet-domain X11 display socket (195) - t (153) - Failed to allocate internet domain X11 display socket (104) - error: Failed to allocate internet-domain X11 display s (66) - error: Failed to allocate internet-domain X11 display socket (62) - Failed to allocate internet-domain X11 display socket S (62) - Failed to allocate internet-domain X11 display socket. (53) - error: Failed to allocate internet-domain X11 display socket. (49) - solaris ssh Failed to allocate internet-domain X11 disp (46) - solaris 10 Failed to allocate internet-domain X11 displ (27) - failed to allocate internet-domain X11 (22) - Failed to allocate internet-domain X11 display socket Solaris (20) - solaris Failed to allocate internet-domain X11 display  (19) - solaris Failed to allocate internet-domain X11 display socket (16) - Solaris 10 Failed to allocate internet-domain X11 display socket (13) - failed to allocate internet-domain X11 display (12) - Failed to allocate internet-domain X11 display socket solaris 10 (12) - sshd Failed to allocate internet-domain X11 display soc (11) - solaris 10 error: Failed to allocate internet-domain X1 (11) - solaris 10 x11 forwarding (10) - auth.error] error: Failed to allocate internet-domain X11 display socket. (9) - Solaris 10 Failed to allocate internet-domain X11 display socket. (9) - sshd Failed to allocate internet-domain X11 display socket (8) - solaris No X11 DISPLAY variable was set (8) - auth error] error: Failed to allocate internet-domain X (7) - spiralbound net (7) - Solaris error: Failed to allocate internet-domain X11 d (7) - x forwarding solaris DISPLAY not (7) - solaris (7) - ssh Failed to allocate internet-domain X11 display socket (6) - internet-domain X11 display socket (6) - f (6) - solaris x11 forwarding (6) - solaris 10 x forwarding (6) - mss (5) - x11 forwarding broken on solaris (5) - solaris 10 X11 forwarding broken (5) - solaris error: Failed to allocate internet-domain X11 display socket (5) - solaris error: Failed to allocate internet-domain X11 display socket. (5) - solaris sshd x11 forwarding (5) - ssh error: Failed to allocate internet-domain X11 display socket (5) - solaris ssh Failed to allocate internet-domain X11 display socket (5) - No X11 DISPLAY variable was set solaris (5) - ssh Failed to allocate internet-domain X11 display sock (5) - Solaris Failed to allocate internet-domain X11 display socket. (4) - Failed to allocate internet-domain X11 display socket Solaris 8 (4) - restarting x forwarding for solaris 10 (4) - solaris 9 Failed to allocate internet-domain X11 displa (4) - sshd[ ]: error: Failed to allocate internet-domain X11  (4) - ssh failed to allocate internet-domain X11 (4) - Failed to allocate internet-domain X11 display socke (4) - Failed to allocate internet-domain X11 display socket. solaris (4) - X11 tunneling solaris (4) - X11 forwarding solaris 10 (4) - sshd error: Failed to allocate internet-domain X11 display socket (4) - x11 forwarding failed to allocate internet domain X11 d (4) - DISPLAY variable not set solaris 9 (4) - how to set X11 DISPLAY variable in Solaris 10 (3) - solaris patch X11 forwarding (3) - auth.error] error: Failed to allocate internet-domain X11 display socket (3) - x11 forwarding display not set (3) - socfs (3) - error: Failed to allocate internet-domain X11 display socket. solaris (3) - No X11 DISPLAY variable was set solaris 9 (3) - solaris 9 x11 forwarding (3) - error: Failed to allocate internet-domain X11 display socket solaris 10 patch (3) - solaris 10 sshd x11 forwarding (3) - allocate internet-domain X11 display socket (3) - solaris x11 forwarding display not set (3) - No x11 DISPLAY ssh forwarding (3) - Failed to allocate internet-domain X11 display socket solaris 9 (3) - ssh X11 forwarding solaris 10 (3) - solaris 8 Failed to allocate internet-domain X11 display socket. (3) - solaris sshd Failed to allocate internet-domain X11 display socket (3) - Failed to allocate internet-domain X11 display socket sshd solaris (3) - error: Failed to allocate internet-domain X11 display socket solaris 10 (3) - error: Failed to allocate internet-domain X11 (3) - solaris 10 X11 display not set (3) - solaris ssh x forwarding (3) - Failed to allocate internet-domain X11 socket solaris (3) - solaris10 Failed to allocate internet-domain X11 displa (3) - solaris 9 Failed to allocate internet-domain X11 display socket (3) - solaris display variable not set (2) - x11 forwarding not working after solaris patching (2) - solaris ssh not forwarding X (2) - solaris x forwarding broken (2) - no X11 Display variable solaris (2) - solaris zones Failed to allocate internet-domain X11 display socket. (2) - solaris X11 display ssh (2) - ssh display not set x11forwarding on solaris (2) - solaris-10 sshd failed to allocate internet-domain X11  (2) - solaris 10 x forwarding svcs (2) - solaris 9 sshd error: Failed to allocate internet-domai (2) - solaris X11Forwarding (2) - /usr/local/sbin/sshd -4 solaris 10 (2) - how to set X11 DISPLAY variable on solaris 10 (2) - sshd error Failed to allocate internet-domain X11 display socket (2) - X11 forwarding fail after solaris 9 upgrade (2) - solaris 10 auth error] error: Failed to allocate intern (2) - solaris ssh x11 failed to allocate (2) - solaris 10 enable ssh x11 forwarding (2) - force sshd to start in IPV4 only mode (2) - x11 forwarding zones (2) - X11 forwarding sshd solaris (2) - No x11 DISPLAY variable was set on solaris (2) - no x11 display variable was set solaris 10 (2) - sshd DISPLAY not set after patch (2) - solaris X11 (2) - how to x11 forwarding ssh solaris (2) - solaris 8 Failed to allocate internet-domain X11 display socket (2) - Solaris X11 DISPLAY variable (2) - error: Failed to allocate internet-domain X11 display socket. solaris 10 (2) - solaris zones xwindows (2) - ssh solaris DISPLAY not set (2) - solaris 9 error: Failed to allocate internet-domain X11 display socket. (2) - X11 DISPLAY SOCKET (2) - Solaris 10 Failed to allocate internet-domain X11 (2) - sshd error Failed to allocate internet-domain X11 display socket. (2) - X11 Forwarding Broken on Solaris 10 (2) - sshd failed to allocate internet-domain X11 (2) - X DISPLAY in zones solaris (2) - zones X11 display (2) - ssh x11 DISPLAY not set (2) - ssh x11 forward fails solaris (2) - sshd error: Failed to allocate internet-domain X11 disp (2) - solaris no X11 display variable (2) - x11 forwarding SVCADM (2) - Failed to allocate internet-domain X11 display socket X (2) - 1 (2) - solaris 10 zones sshd X11 (2) - Failed to allocate internet-domain X11 solaris (2) - ssh fails with X11 forwarding solaris (2) - X11 forwarding solaris (2) - solaris display variable is blank ssh (2) - solaris x11 forwarding DISPLAY (2) - solaris9 enable x11 forwarding (2) - Solaris 10 ssh x11 (2) - failed to allocate internet-domain X11 display Solaris  (2) - solaris ssh display not set (2) - FR (2) - Display variable not set Solaris 10 (1) - start X11 in solaris (1) - solaris X11 forwarding Failed to allocate internet-domain X11 display socket (1) - solaris 8 installing X11 (1) - Failed to allocate internet-domain X11 display socket Zone (1) - Solaris 10 zone sshd -4 X forwarding (1) - ssh x11 display variable solaris (1) - sun sshd X forwarding fails (1) - Failed to allocate internet-domain X11 display solaris 10 (1) - solaris X11 forwarding error (1) -