VNC using PUTTY SSH tunnel
drigden "at" liverpool.ac.uk
Wed Oct 19 12:46:00 2005
There are step-by-step instructions on using Putty with VNC on this very
This way works well for me.
On Wed, 2005-10-19 at 12:00 +0100, vnc-list-request "at" realvnc.com wrote:
> I am trying to reach a VNC server running on an AIX5.3 host at home
> ( I
> tried to a Solaris 8 host at home with the same results). They are
> behind a DLINK cable router.
> I have port forwarding set for port 9999 --> 5901 and have started the
> server with "vncserver :1". The "netstat -an" confirms the process
> listening on 5801 for HTTP requests and 5901 for vncviewer requests.
> I can successfully connect with vncviewer going to "hostname:9999"
> it is not using an SSH tunnel.
> I have port forwarding set for port 8888 --> 22 for ssh. I can
> successfully connect with ssh using "ssh -p 8888 hostname" from a
> command line or from a PUTTY session going to port 8888.
> I have created a putty entry with the same ssh parameters and then
> SSH tunnels I have created an entry with source port 5901 (local) and
> destination "hostname:5901" since the SSH tunnel should hide the port
> forwarding of 9999 --> 5901. I get the normal SSH prompt for userid
> and password. I then try and start the vncviewer and connect to
> localhost:1 or 127.0.0.1:1 and get a message "The connection closed
> unexpectedly. Do you wish to attempt to reconnect to ...:".
> I have read through the FAQ's and did some Google searches but can not
> find a problem that matches. Am I missing something completely
> What gets me is that I set up a VNC connections successfully with the
> same PC and a local UNIX server with no problem.
> Any assistance would be appreciated.
Dr Daniel John Rigden Tel:(+44) 151 795 4467
School of Biological Sciences FAX:(+44) 151 795 4406
Room 101, Biosciences Building
University of Liverpool
Liverpool L69 7ZB, U.K.