SSH and VNC
William Hooper
whooper@freeshell.org
Tue Jun 17 19:12:01 2003
Dave T. said:
> I've read a gazillion posts in the archives, but I haven't found my
> answer.
> Following is what I am doing from my Windows SSH client:
>
> ssh -L 5954:unix_host:5904 unix_host
Have you verified that a VNC server is running on display 4? Do you have
a firewall in place that might be blocking the connection? Try:
ssh -L 5954:localhost:5904 unix_host
> The UNIX host is an SSH server, and I get a connection.
>
> Then, on my PC, I have tried to run all of the following, with no success:
>
> vncviewer unix_host:54
> vncviewer unix_host:4
> vncviewer unix_host:04
> vncviewer unix_host:1
>
> My understanding was that the first one would work, but none of these
> work.
> What am I doing wrong?
As others have pointed out, this should be
vncviewer localhost:54
Have you checked out VNC's page about using SSH?
http://www.uk.research.att.com/vnc/sshvnc.html
Also a member of the list has put together a page about using PuTTY:
http://www.benjamin.weiss.name/putty-tunnel.html
What SSH software are you using? Have you looked at the debug logs for
the SSH client or server?
--
William Hooper