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.

winvnc1

You can now save session.

winvnc2

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

winvnc3

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

winvnc4

You’ll be prompted to enter password.

winvnc5

You are connected to remote vnc through ssh.

winvnc6

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


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.
Read 240 articles by

Trending Posts