Open display error
Sergio Brandano
sb at dcs.qmw.ac.uk
Thu Jan 27 22:07:19 EST 2000
>Do you have X11Forwarding turned on in both /etc/sshd_config and
>~/.ssh/config? Try running both ssh and sshd in debug mode and see if
>the output doesn't tell you something.
>
>jim knoble
I have no error messages on the debug, as far as I can see.
On /etc/ssh/sshd_config I have:
> X11Forwarding yes
and I remember it was the first thing I did some days ago.
I do not have ~/.ssh/config, but I found /etc/ssh/ssh_config
where ForwardX11 was not active. I created the ~/.ssh/config
where I allowed box2 as possible host:
Host box2
ForwardAgent yes
ForwardX11 yes
As a result
- --> ssh -f xterm
now works as it should (DISPLAY is set to box1:10.0
and, obviously, there are no problems concerning xhost).
(The debug trace was fine too.)
The following still does not work:
- --> ssh -f box2 /usr/X11R6/bin/xterm
- --> _X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
/usr/X11R6/bin/xterm Xt error: Can't open display: box2:10.0
I see it created DISPLAY automatically, but in the wrong way.
Instead of box2:10.0, it should open box1:10.0.
(the debug trace was dead.)
Sergio
More information about the openssh-unix-dev
mailing list