On Tue, Sep 30, 2008 at 01:21:14PM +0200, Malte Horst Arthur Skoruppa wrote:
> [EMAIL PROTECTED] $ ssh -g -L 2508:ririu:22 [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED] $ ssh -p 2508 -X [EMAIL PROTECTED]
> 
> I do succeed in connecting to ririu. Except that the X forwarding doesn't 
> work!

It should work as expected if you just skip the tunnel and use two
ssh connections:

imadev:~$ ssh -t -X vandev ssh -X arc1 xdpyinfo
RSA host key for IP address '10.76.142.101' not in list of known hosts.
[EMAIL PROTECTED]'s password: 
Warning: No xauth data; using fake authentication data for X11 forwarding.
Password: 
name of display:    localhost:11.0
version number:    11.0
vendor string:    Hewlett-Packard Company
vendor release number:    600000
...

Of course you'll need xauth(1) on all three machines, and X11Forwarding
in the sshd_config files on all but "hal".

The -t option on the first ssh is so that there's a terminal in which
the sshd on box #2 (vandev in my example) can ask for a password.  This
shouldn't be needed if you use keys.

Reply via email to