X11Forwarding strangeness

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a remote server acting strange. `ssh -X myserver` functions only
correct if I use `X11UseLocalhost yes`.  After changing the setting
`X11UseLocalhost no`, ssh reuses my $DISPLAY setting AND it only works
correcty the second time.
So on the first connection I get `DISPLAY=myserv:10` but trying xterm
gives me `xterm Xt error: Can't open display: myserv:10.0`.  Setting up
another connection to the same server, I get `DISPLAY=myserv:10` again
and xterm works fine.

Any suggestion on what I'm doing wrong?

(Please, CC me. Not following this group)

Re: X11Forwarding strangeness

Quoted text here. Click to load it

Assuming you are using OpenSSH, I think this is the following bug:

The underlying cause is that some of the connect leave the TCP socket
in FIN_WAIT states, and when sshd attempts to listen on those ports
without the SO_REUSEADDR flag, it fails.  This will be fixed in the
next release (4.3).

Quoted text here. Click to load it

No, if you post it here then you read it here.

Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline