[wplug] Tunneling X across multiple SSH hops?

Eric Cooper ecc at cmu.edu
Fri Apr 15 15:28:49 EDT 2005


On Fri, Apr 15, 2005 at 02:06:08PM -0400, Vanco, Don wrote:
> Anyone have a quick-n-dirty set of instructions for getting X to "play
> nice" across multiple SSH hops?

Just use "-X" (forward X connection) along each hop:
    A$ ssh -X B
    B$ ssh -X C
    C$ xclock
displays the clock on A.

You might have to make sure that X forwarding is enabled in your
configuration (ForwardX11 in ssh_config, X11Forwarding in sshd_config)

-- 
Eric Cooper             e c c @ c m u . e d u


More information about the wplug mailing list