X11 forwarding from one server to other

Posted by n3oblit7 on Super User See other posts from Super User or by n3oblit7
Published on 2011-01-08T17:05:01Z Indexed on 2011/01/16 5:56 UTC
Read the original article Hit count: 224

Filed under:

I have a setup where I need to forward X11 from my local machine (laptop) to a Virtual machine. The server hosting this VM cannot be reached directly from my laptop. I need to first login to a gateway and from this gateway, I can access the VM. How can I forward X11 from my laptop to this VM? I have tried following but these do not work:

  1. [laptop # ] ssh -X [gateway]

    [gateway # ] ssh -X [VM]

  2. [laptop # ] ssh -tX [gateway] ssh -X [VM]

I could forward X11 only till the gateway. (DISPLAY variable gets set on gateway)

© Super User or respective owner

Related posts about x11