I was able to display the redhat side on the vnc viewer from my window xp without ssh tunneling. I am using cygwin ssh on window xp. I tried the following command on cygwin to do port forwarding for vnc:
1) ssh -L 5902:localhost:5901 <remote host>
This statement means "make connections to the XP's port 5902 actually open the remote host's port 5901". If you are using standard ports (server listening on 5900) and client expecting the server to be on 5900, then you should use this:
ssh -L 5900:localhost:5900 <remote host>
2) On the redhat side, I ran:
vncserver -localhost
After I ran this I launch the vncviewer on window xp, and I get the following error:
unable to connect to host. Connection refused (10061)
In the viewer you should make sure you connect to "localhost".
Just to test basic connectivity, you can try this on the XP box
telnet localhost 5900 or if you used this SSH tunnel command:
ssh -L 5902:localhost:<remote port> <remote host> then you'd need this telnet localhost 5900
If successful VNC should respond something like this: RFB 003.008 _______________________________________________ VNC-List mailing list [email protected] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
