StarNetSSH: Bad packet length connecting to Solaris 9 server
Solaris 9 has a bug, introduced in a patch, that breaks X11 Forwarding for all ssh clients attempting to connect to Solaris 9 using X11 Forwarding (including all versions of X-Win32). The symptom of this bug is that a connection attempt with X11 Forwarding enabled is disconnected with a bad packet length error.
Solutions
- Install a replacement patch from Sun: Solaris 9 SSH X11 Forwarding Patch
- Disable IPv6 listening for the ssh server. The IPv6 functionality contains the bug that breaks X11 Forwarding, so limiting support to IPv4 only works-around the problem for servers that do not need IPv6 support.
- Edit /etc/ssh/sshd_config and change
# IPv4 only
to
#ListenAddress 0.0.0.0
# IPv4 & IPv6
ListenAddress ::# IPv4 only
ListenAddress 0.0.0.0
# IPv4 & IPv6
#ListenAddress :: - Edit /etc/init.d/sshd and change
[ -x /usr/lib/ssh/sshd ] && /usr/lib/ssh/sshd &
to - Restart the daemon using the init.d script.
[ -x /usr/lib/ssh/sshd ] && /usr/lib/ssh/sshd -4 &
- Edit /etc/ssh/sshd_config and change

Solutions