Ssh – How to view the remote desktop that is behind a NAT router

remote desktopsshubuntu-10.04

I have my ubuntu machine at work and I'd like to use remote desktop to work from home. However the remote machine is on a behind a NAT router and not directly connected to the internet.

I am able to remotely connect through ssh to a server, from which I then ssh to my remote machine. This has been beneficial, however I am currently working on a GUI application so just the command line doesn't work so well. Any ideas?

I have tried using ssh with the -X flag on both sessions, but this doesn't work.
I am trying to connect from Windows Vista through a Mac server (isn't it a great setup?).

Best Answer

You say remote desktop and tag your question ubuntu-10.04. So I assume you are using VNC and the development machine is ubuntu.

On your Vista machine do the equivalent of ssh -L 5910:ubuntu_ip:5900 mac_ip (following those putty screenshots: hostname=mac_ip, source port=5910, destination=ubuntu_ip)

Point your VNC client to localhost:10