VNC over SSH – Linux / Windows
For remote administration we use ssh. You may require to take VNC of remote terminal.
VNC is safe for over local network, you might want to consider using it over SSH to get encryption.
For Linux
vncviewer -via root@192.168.222.1 localhost:1
for Linux above single command can tunnel VNC through SSH.
For Windows
Bellow images illustrates how to connect VNC through SSH from Windows terminal.
Run putty.exe, enter ip & port details of ssh server.
Goto SSH –> Tunnels (left panel), enter source & destination port.

You can now save session.

On successful connection to remote ssh server, you’ll find port 5901 is in listening mode on localhost.

You can run vncviewer.exe & enter localhost:1 in server tab.

You’ll be prompted to enter password.

You are connected to remote vnc through ssh.

This is not all, you can use it to access applications running on different / standard ports. e.g IMAP, Admin panel for Operfire Messenger.






