Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: X forwarding over multiple ssh tunnels?

From: Wilson, Richard E <richard.wilson(at)eds.com>
Date: Mon Mar 03 2003 - 15:54:34 EST


Kamen,

I have done this, using the following:

I would use a command like "ssh -l ID -f B ~/bin/rmt.xtrm" on system A; The rmt.xtrm script on B would run xterm without setting a DISPLAY environment variable. Since SSH on both A and B was set up to permit and forward X11, I would get an xterm window on A from B.

In that window, I would then run a similar command: "ssh -l ID -f C ~/bin/rmt.xtrm" The rmt.xtrm script on C was pretty much identical to the one on B. When system C tried to send the xterm window back to B, It would pick up the DISPLAY environment variable that was set up on B (usually something like B:10.0) and the resulting xterm would then display on system A.

I've done this with other X11 programs as well, like Netscape; you can also run most other X11 programs in the system C window displaying on A and they will also display back on A.

Hope this helps,

Richard Wilson

-----Original Message-----
From: Kamen Penev [mailto:kamen@penev.net] Sent: Friday, February 28, 2003 12:45 PM To: secureshell@securityfocus.com
Subject: X forwarding over multiple ssh tunnels?

Do you need help?X

Hi!

Is it possible to forward X window traffic over multiple ssh tunnels?

I have machines A(cygwin), B(linux), and C(freebsd)

I have an X-server running on A and DISPLAY=localhost:0

I can
ssh -X B

and X clients will display on A.

I would like to "ssh -X C" from B and have X-clients on C display on A, but I can't get it to work.

Is this possible?

Do you need more help?X

I cannot ssh directly from A to C because B and C are behind a firewall and only B is exposed.

Thanks.

Kamen Received on Mon Mar 3 22:00:42 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:55 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library