I'm trying to run a web browser on my desktop machine at work but display on my local laptop.
To connect via ssh, I need to go through 2 servers.
- A: Laptop wanting to display browser that runs on D.
- D: Desktop with browser installed
I've tried all sorts of combinations to get X forwarded through each host with no luck, X11Forwarding is enabled on all hosts and does work when the 2 servers are not involved.
Essentially, something like;
ssh -X user@server1 ssh -X user@server2 ssh -X user@desktop
Then I'd like to be able to launch applications on D but display on A.
when doing echo $DISPLAY on D, the display is not set, it seems to be 'lost' on server2.
Server1$ echo $DISPLAY localhost:10.0 Server1$ ssh -X user@server2 Server2$ echo $DISPLAY Server2$