Assuming you are using a Windows Clients and you wish to have a Secure Shell Connection to Windows, you have to do the followings:
Step 1: Assuming you have launch the VNC Session at the vncserver Server
$ vncserver
New 'xxx.yourserverdomain.com:2 (root)' desktop is xxx.yourserverdomain.com:2
Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/xxx.yourserverdomain.com:2.log
Step 2: Configuration at the SSH Client
- At Putty Client, Enter the IP of hostname of the VNCServer
- On the left-hand pane, click Connection > SSH > Tunnels
- Source Port: 590x (depending on the return port above in step 1)
- Destination Port: xxx.serverhostname.com:590x (depending on the return port in step 1)
- Connect to the Server via SSH
Step 3: Use the VNC Client to connect to local VNC Port. On the TightVNC connection,
$ localhost:2