'X11 forwarding' SSHD assigns already used port

Hi,

We've been facing a strange issue. Clients use X11 forwarding via SSH on HP server and sometimes the same DISPLAY is assigned to two (maybe more) sessions. As a result, some users can't open their applications, and some have their windows redirected to somebody else.

It looks as if sshd was not aware of the ports already assigned to other sessions.

# netstat -an | egrep -e "LISTEN|TIME_WAIT" | awk '{ if($4 ~ /\*\.60[0-9]{2}/) print }' | sort
tcp 0 0 .6010 *. LISTEN
tcp 0 0 .6010 *. LISTEN
tcp 0 0 .6011 *. LISTEN
tcp 0 0 .6011 *. LISTEN
tcp 0 0 .6012 *. LISTEN
tcp 0 0 .6012 *. LISTEN
tcp 0 0 .6013 *. LISTEN
tcp 0 0 .6013 *. LISTEN
tcp 0 0 .6014 *. LISTEN
tcp 0 0 .6014 *. LISTEN
tcp 0 0 .6015 *. LISTEN

Did anybody experience a similar problem?

Software versions are as follows:

  • OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
  • HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version
  • HP-UX B.11.23 U ia64 0920657533 unlimited-user license

Kind Regards,
Pit

Ummm.. sounds weird. Anyways, was there any SW or HW change before this happens? From when are you facing this issue? Any patch installed?

-DB