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: [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
Edit your sshd startup script to issue a “-4” to sshd on start:
case "$1" in
echo 'starting ssh daemon'
Restart sshd, and that should pretty much do it… Enjoy.