x11vnc is a different solution, instead of launching single applications over the tunnel, you remote attach to the remote existing desktop session and control it with the local input devices. Install x11vnc
on the remote computer, and enable sshd
. From the local computer, create a SSH tunnel:
ssh -t -L 5900:localhost:5900 remote-host-name 'x11vnc -localhost -forever -display :0'
Run a VNC client on the local computer and connect to localhost, protocol VNC, port 5900, display 0 or the like. I can recommend KRDC.
When you are done, close the VNC client, then kill the SSH session to tear town the tunnel.