VNC Via ssh tunnel
"James Hinchey" <[email protected]> Thu, 5 May 2011 10:34:24 -0400
| Newsgroups | gmane.network.vnc.user |
|---|---|
| Message-ID | <1D85BB8056BEAE45B426A43666A5A37201E45EE1__1239.7542050623$1304666662$gmane$org@asi-mail.adacel.domain> |
Hello, I am having difficulty establishing vnc connections via an ssh tunnel. We have a series of independent LANs, each one has one computer with an interface to the wider network. I need to be able to VNC through this gateway computer to any other computer on the internal network. I have been attempting to do this using an ssh tunnel, but it doesn't always work. I first establish the tunnel on the gateway machine with: /usr/bin/ssh -L localport:remoteIP:5900 localhost sleep 60 to allow the tunnel to expose a unique port for each computer inside the network and attempt to connect to that port with vncviewer. So if I want to make a VNC connection to 192.168.103.12, I would set up the tunnel /usr/bin/ssh -L 12345:192.168.103.12:5900 localhost sleep 60 and connect to "vncviewer gateway:12345" This seems to work about 50% of the time. The rest of the time I get main: unable to connect to host: Connection refused (111) It is more likely to connect when running realvnc from windows than linux, but still not 100% of the time. Has anyone done anything similar? Am I missing something very obvious here? Thanks for your help James _______________________________________________ VNC-List mailing list [email protected] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list