I see to have hit an interesting problem with openssh-2.1.1p1-1 and X
forwarding. When I use the directions in the file
/usr/doc/openssh-2.1.1p1/README.Ylonen, I get different results:

root@charlesc # ssh server echo $DISPLAY
root@server's password:
charlesc:0.0
root@charlesc # ssh -f server emacs
root@server's password:
_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
emacs: Cannot connect to X server server:0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

In the first command, I have it echo $DISPLAY, which is the display on the
machine from which I am logging in. In the second, emacs is dying after
being unable to connect to an X server on the machine the client is
running on, server. Is this a bug in openssh-2.1.1p1-1?

I can get a connection by setting the server explicitly:

root@charlesc # ssh -f server emacs -d charlesc:0.0
root@server's password:

However three things:

1) I don't know if this is running thorugh X forwarding via SSH or
through the standard X client-server mechanism, and

2) ssh does not appear to be forking into the background.

3) ssh does not appear to be setting the variable display correctly.

root@charlesc # ssh -f server 'echo $DISPLAY ; emacs -d charlesc:0.0'
root@server's password:
server:0.0

Question: do I have to have a working X server on server for X forwarding
to work? I do not have one on server because it is a 486, with limited
RAM, which I intend to use as a firewall and I have no reason to want an X
server. I intend to do all of my X displaying for server (mostly emacs and
Red Hat config tools) on charlesc.

-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

PGP signature

Reply via email to