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


2 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!


Got something to say?






Post Tags (user submitted): t (153) - Failed to allocate internet domain X11 display socket (104) - Failed to allocate internet-domain X11 display socket (69) - error: Failed to allocate internet-domain X11 display s (66) - Failed to allocate internet-domain X11 display socket S (62) - solaris ssh Failed to allocate internet-domain X11 disp (46) - solaris 10 Failed to allocate internet-domain X11 displ (27) - error: Failed to allocate internet-domain X11 display socket (23) - solaris Failed to allocate internet-domain X11 display  (19) - Failed to allocate internet-domain X11 display socket. (18) - failed to allocate internet-domain X11 (18) - error: Failed to allocate internet-domain X11 display socket. (11) - solaris 10 error: Failed to allocate internet-domain X1 (11) - sshd Failed to allocate internet-domain X11 display soc (11) - solaris 10 x11 forwarding (10) - failed to allocate internet-domain X11 display (8) - Solaris 10 Failed to allocate internet-domain X11 display socket (8) - Failed to allocate internet-domain X11 display socket Solaris (8) - auth error] error: Failed to allocate internet-domain X (7) - Solaris error: Failed to allocate internet-domain X11 d (7) - spiralbound net (7) - solaris 10 x forwarding (6) - solaris x11 forwarding (6) - f (6) - solaris sshd x11 forwarding (5) - Failed to allocate internet-domain X11 display socket solaris 10 (5) - mss (5) - ssh Failed to allocate internet-domain X11 display sock (5) - ssh failed to allocate internet-domain X11 (4) - solaris error: Failed to allocate internet-domain X11 display socket (4) - internet-domain X11 display socket (4) - sshd[ ]: error: Failed to allocate internet-domain X11  (4) - X11 tunneling solaris (4) - solaris 9 Failed to allocate internet-domain X11 displa (4) - sshd error: Failed to allocate internet-domain X11 display socket (4) - x11 forwarding failed to allocate internet domain X11 d (4) - X11 forwarding solaris 10 (4) - restarting x forwarding for solaris 10 (4) - x11 forwarding broken on solaris (3) - solaris ssh x forwarding (3) - solaris10 Failed to allocate internet-domain X11 displa (3) - auth.error] error: Failed to allocate internet-domain X11 display socket. (3) - Failed to allocate internet-domain X11 display socke (3) - Failed to allocate internet-domain X11 socket solaris (3) - No X11 DISPLAY variable was set solaris 9 (3) - allocate internet-domain X11 display socket (3) - error: Failed to allocate internet-domain X11 (3) - ssh X11 forwarding solaris 10 (3) - solaris 10 sshd x11 forwarding (3) - x11 forwarding display not set (3) - how to set X11 DISPLAY variable in Solaris 10 (3) - solaris 10 enable ssh x11 forwarding (2) - sshd error Failed to allocate internet-domain X11 display socket. (2) - no X11 Display variable solaris (2) - solaris x11 forwarding DISPLAY (2) - sshd error: Failed to allocate internet-domain X11 disp (2) - solaris 10 X11 forwarding broken (2) - X11 forwarding sshd solaris (2) - solaris ssh x11 failed to allocate (2) - solaris Failed to allocate internet-domain X11 display socket (2) - solaris 9 Failed to allocate internet-domain X11 display socket (2) - ssh Failed to allocate internet-domain X11 display socket (2) - solaris X11 display ssh (2) - solaris-10 sshd failed to allocate internet-domain X11  (2) - x11 forwarding not working after solaris patching (2) - solaris ssh Failed to allocate internet-domain X11 display socket (2) - solaris 10 auth error] error: Failed to allocate intern (2) - X11 Forwarding Broken on Solaris 10 (2) - sshd DISPLAY not set after patch (2) - solaris x forwarding broken (2) - solaris X11 (2) - solaris 9 sshd error: Failed to allocate internet-domai (2) - how to x11 forwarding ssh solaris (2) - Solaris 10 Failed to allocate internet-domain X11 (2) - solaris X11Forwarding (2) - auth.error] error: Failed to allocate internet-domain X11 display socket (2) - ssh x11 DISPLAY not set (2) - error: Failed to allocate internet-domain X11 display socket. solaris (2) - force sshd to start in IPV4 only mode (2) - Failed to allocate internet-domain X11 display socket X (2) - solaris ssh not forwarding X (2) - 1 (2) - solaris 9 x11 forwarding (2) - Solaris 10 ssh x11 (2) - FR (2) - ssh x11 forward fails solaris (2) - ssh fails with X11 forwarding solaris (2) - no x11 display variable was set solaris 10 (2) - X11 forwarding solaris (2) - solaris zones xwindows (2) - X DISPLAY in zones solaris (2) - solaris patch X11 forwarding (2) - failed to allocate internet-domain X11 display Solaris  (2) - solaris 10 X11 forward ssh (1) - solaris x11 forwarding ssh (1) - solaris 10 ssh X11 broken (1) - solaris 10 Failed to > allocate internet-domain X11 display socket (1) - No X11 DISPLAY variable was set ssh solaris (1) - Solaris X11 Display forwarding (1) - enable x11 forwarding on Sun 10 (1) - ssh x forwarding solaris root (1) - error: Failed to allocate internet-domain X11 display socket rhel (1) - X11 Forwarding failed on solaris 10 (1) - x11 forwarding solaris 10 display set (1) - sun solaris sshd 10 x11 (1) - solaris 10 error: Failed to allocate internet-domain X11 display socket (1) - Failed to allocate internet-domain X11 display socket soalris 10 (1) - forward x11 DISPLAY not set (1) - error: Failed to allocate internet-domain X11 display socket solaris 10 (1) - solaris ssh x11 workaround (1) - sshd error Failed to allocate internet-domain X11 display socket (1) - forwarding display from solaris (1) - startup x11 solaris (1) - solaris sshd ipv4 (1) - Failed to allocate internet-domain X11 disp (1) - set x11 on solaris (1) - X11 Forwarding fails, Solaris 10 (1) - Failed to allocate intern (1) - solaris 10 failed to allocate internet-domain X11 display (1) - solaris 10 X11 forward (1) - solaris 10 x11 over ssh not working from zone (1) - enable X11 forwarding on solaris 8 (1) - solaris x11 broken (1) - ssh not setting DISPLAY solaris 10 (1) - solaris 10 error: Failed to allocate internet-domain X11 display socke (1) - ssh solaris X11 (1) - how to edit /lib/svc/method/sshd solaris 10 (1) - x11 forwarding zones (1) - x11 on solaris not working on solaris 10 (1) - boot CD failure ghost (1) - sshd 5 X11 forward (1) - x11 forwarding solaris 10 patches (1) - ssh error: Failed to allocate internet-domain X11 (1) - zone solaris ssh X (1) - ssh X11 zone solaris 10 display (1) - solaris 10 SSH X11 forwarding fails (1) - Failed to allocate internet-domain X11 display socket 2 (1) - ssh broken on solaris 8 after patching -apache (1) - solaris display variable is not set (1) - ssh solaris DISPLAY (1) - Failed to allocate internet-domain X11 display socket solaris sshd (1) - solaris sshd failed to allocate X11 socket (1) - enable x11 forwardin on solaris 10 (1) - solaris x11 display (1) - Solaris ssh x11forward (1) - DISPLAY variable not set solaris 9 (1) - rhel4 DISPLAY not set ssh (1) - disable solaris 10 X11 (1) - Solaris 10 X11 forwarding patch (1) - patch X11 forwarding solaris 8 patch (1) -