VNC Setup over SSH

Solution 1:

I did not see from your description that you started the vnc server.

vncserver :1 -name "My-Server" -geometry 1600x1100

don't do that as root tho. Run is as a regular user. I have a similar post for setting up vnc4server on SuperUser.com: connecting via VNC

Now for the putty setup, the Source port should be 5901 and the Destination should be localhost:5901

When you connect from windows your command should look like this:

vncviewer.exe -connect Server:1

Solution 2:

I don't bother with any of the server jazz. I install x11vnc on the remote computer, connect to it by ssh, forwarding back the port and then just connect locally (to the forwarded port).

Here's the SSH command I use:

ssh [email protected] -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage"

Once that's running, I just start my VNC client and connect to localhost:5900

You can script this to do one then the other. I'd tell you what I do but this is running on my phone and the client is different.