I have hosts A,B and C. From host A I can access through ssh only B. From B I can access C. I want to be able to run X11 programs on C and forward display to A.
I tried this:
A$ ssh -X B B$ ssh -X C C$ xclock Error: Can't open display:
But it doesn't work.
GatewayPorts is not needed since when it is disabled, SSH still listens on localhost and that is what we are connecting to. You would only need it if you wanted to make the second connection via an external IP for machine A.
– dave Aug 12 '09 at 22:48