Can't get X forwading working

Kaloian Doganov <[email protected]> Sun, 03 Jun 2007 23:25:32 +0300
Newsgroups gmane.network.lsh.bugs
Message-ID <[email protected]>
(I'm not sure whether this mailing list the apropriate place to report
bugs or problems with GNU lsh.  If it is not, please point me to the
right place.)

Using GNU lsh 2.9-exp to login on a remote host ("mafra", running
OpenSSH server with X11 forwarding enabled, of course), I end up with
no DISPLAY environment variable on the remote host:

--------------------8<--------------------
$ /usr/local/bin/lsh --x11-forward --verbose mafra.doganov.org
lsh: Enabling default escape character `~'
lsh: Could not open gateway: (errno = 2): No such file or directory
lsh: Starting /usr/local/bin/lsh-transport.
Passphrase for key `kaloian@millenium-falcon':
lsh-transport: Connecting to mafra.doganov.org:22....
lsh-transport: ... connected.
lsh-transport: Server version string: SSH-2.0-OpenSSH_4.3p2 Debian-9
lsh-transport: Received KEXINIT message. Key exchange initated.
lsh-transport: Selected keyexchange algorithm: diffie-hellman-group14-sha1
  with hostkey algorithm:       ssh-rsa
lsh-transport: Selected bulk algorithms: (client to server, server to client)
  Encryption:             (aes256-cbc, aes256-cbc)
  Message authentication: (hmac-sha1, hmac-sha1)
  Compression:            (none, none)
lsh-transport: SPKI host authorization successful!
lsh-transport: Requesting authentication using the `publickey' method.
lsh-transport: Received USERAUTH_SUCCESS.
lsh: Allocated local channel number 0
lsh: pty request succeeded
Linux mafra 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jun  3 22:52:11 2007 from 141.201.pppoe.intech.bg
kaloian@mafra:~$ echo $DISPLAY

kaloian@mafra:~$
--------------------8<--------------------

The same example case goes a little further when I try to execute it
with GNU lsh 2.0.3:

--------------------8<--------------------
$ /usr/local/bin/lsh --x11-forward --verbose mafra.doganov.org
lsh: Enabling default escape character `~'
lsh: Using local X11 transport `/tmp/.X11-unix/X0'
Passphrase for key `kaloian@millenium-falcon':
lsh: garbage collecting...
lsh: Objects alive: 88, garbage collected: 24
lsh: Client version: SSH-2.0-lsh-2.0.3 lsh - a GNU ssh
Server version: SSH-2.0-OpenSSH_4.3p2 Debian-9
lsh: Received KEXINIT message. Key exchange initated.
lsh: Selected keyexchange algorithm: diffie-hellman-group14-sha1
  with hostkey algorithm:       ssh-rsa
lsh: Selected bulk algorithms: (client to server, server to client)
  Encryption:             (aes256-cbc, aes256-cbc)
  Message authentication: (hmac-sha1, hmac-sha1)
  Compression:            (none, none)
lsh: SPKI host authorization successful!
lsh: Received NEWKEYS. Key exchange finished.
lsh: Setting session key lifetime to 2400 seconds
lsh: Requesting authentication using the `none' method.
lsh: Requesting authentication using the `publickey' method.
lsh: Requesting authentication using the `publickey' method.
lsh: SSH_MSG_USERAUTH_PK_OK received
lsh: Sending `publickey' signature.
lsh: User authentication successful.
lsh: Allocated local channel number 0
lsh: Registering local channel 0.
lsh: Taking channel 0 in use, (local 0).
lsh: Requesting a remote pty.
lsh: Requesting X11 forwarding.
lsh: pty request succeeded
lsh: X11 request succeeded
Linux mafra 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jun  3 22:52:22 2007 from 141.201.pppoe.intech.bg
kaloian@mafra:~$ echo $DISPLAY
localhost:10.0
kaloian@mafra:~$ xclock
lsh: Allocated local channel number 1
lsh: x11 connection attempt, originator: 127.0.0.1:50836
lsh: Registering local channel 1.
lsh: Taking channel 3 in use, (local 1).
--------------------8<--------------------

xclock hangs forever at this point and xclock's window is not
displayed on the X server.

The same test with openssh -X leads to xclock's window actually
displayed on the X server.


-- 
Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm