X11 forwarding from one server to other
- by n3oblit7
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:
[laptop # ] ssh -X [gateway]
[gateway # ] ssh -X [VM]
[laptop # ] ssh -tX [gateway] ssh -X [VM]
I could forward X11 only till the gateway. (DISPLAY variable gets set on gateway)