Using this technique I was about to VNC securely to a remote machine via an SSH tunnel. I used corkscrew to send my SSH connection over a corporate HTTP proxy, bypassing the firewall.
Disclaimer: Don’t blame me if you get sacked for this!
Assuming you have corkscrew already installed… (if not, you can install it easily via macports)
Create an entry in your ~/.ssh/config file – this will save you a LOT of typing in future….This version assumes you are using standard ports for your VNC connection. And the remote machine is on a remote LAN.
Host remotehost HostName example.com Port 22 User joebloggs IdentityFile ./id_rsa_key // only include if you use private key authentication ProxyCommand corkscrew proxyhost.com 8080 %h %p // replace 8080 with your proxy server port LocalForward 5901 192.168.0.99:5901 // where 192.168.0.99 is the remote machine LAN IP
Make sure the VNC server is running on the remote machine (assuming screen 1 above).
Connect to the remote client:
ssh remotehostLaunch Safari, and type in the address bar vnc://127.0.0.1:5901 and the screen sharing program and connect to the remote machine.