X11 forwarding not working



Hi,
I'm using Cygwin and Debian and I can't get X11 forwarding to work as expected. I was hoping someone might have some ideas as to how I can debug this problem.

Windows XP/Cygwin (client,robalo), OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006
Debian (server,gumbo), OpenSSH_3.8.1p1 Debian-8.sarge.6, OpenSSL 0.9.7e 25 Oct 2004

A transcript demonstrating the problem is here:

{robalo:~} ssh -F/dev/null -X gumbo
Last login: Fri Mar 16 18:33:26 2007 from robalo.rosecommon
{gumbo:jason} echo $DISPLAY
gumbo:10.0
{gumbo:jason} netstat -a|grep 6010
tcp6 0 0 *:6010 *:* LISTEN
{gumbo:jason} xdpyinfo
xdpyinfo: unable to open display "gumbo:10.0".
{gumbo:jason}

If I set X11UseLocalhost yes (the default), I get the following:

{robalo:~} ssh -F/dev/null -X gumbo
Last login: Fri Mar 16 18:45:04 2007 from robalo.rosecommon
{gumbo:jason} echo $DISPLAY
localhost:10.0
{gumbo:jason} netstat -a|grep 6010
tcp 0 0 localhost.localdom:6010 *:* LISTEN

tcp6 0 0 ip6-localhost:6010 *:* LISTEN

{gumbo:jason} xdpyinfo|head
name of display: localhost:10.0
version number: 11.0
vendor string: The Cygwin/X Project
vendor release number: 60802000
maximum request size: 16777212 bytes
motion buffer size: 256
{gumbo:jason}

Normally, I have the following options set on the server:
X11Forwarding yes
X11DisplayOffset 10
GatewayPorts yes
X11UseLocalhost no

Now, if I explicitly forward the X11 connection, I can make it work as
expected.
{robalo:~} ssh -F/dev/null -R6010:localhost:6000 gumbo
Last login: Fri Mar 16 18:50:57 2007 from robalo.rosecommon
{gumbo:jason} echo $DISPLAY

{gumbo:jason} netstat -a|grep 6010
tcp6 0 0 *:6010 *:* LISTEN
{gumbo:jason} export DISPLAY=gumbo:10
{gumbo:jason} xdpyinfo|head
name of display: gumbo:10.0
version number: 11.0
vendor string: The Cygwin/X Project
vendor release number: 60802000
maximum request size: 16777212 bytes
motion buffer size: 256
{gumbo:jason}

Can anyone offer some suggestions on what I may need to setup differently either on the client or on the server?

Thanks!
Jason

.



Relevant Pages

  • X11 forwarding not working with X11UseLocalhost no
    ... I'm using Cygwin and Debian and I can't get X11 forwarding to work as expected. ... echo $DISPLAY ... vendor string: The Cygwin/X Project ...
    (comp.security.ssh)
  • Re: Xorg 7.3 - differences from 7.2?
    ... name of display::0.0 ... vendor string: The X.Org Foundation ... Xdpyinfo is a utility for displaying information about an X server. ... running Xorg version 7.3? ...
    (comp.unix.bsd.freebsd.misc)
  • Re: MOSAIC problem (GIF image)
    ... vendor string: DECWINDOWS DigitalEquipmentCorp. ... maximum request size: 4096 longwords ... number of screens: 1 ... image on the display. ...
    (comp.os.vms)