Personal tools

VNC over SSH Tunnel in PuTTY

From Proxmox VE

Jump to: navigation, search

Contents

The Network Setup

Let us take a network setup wherein the VNC Server machine and two linux machines are on the same LAN and the controlling VNC Client (Windows Box) is on a remote network possibly behind a NAT and different subnet.

In an actual deployment scenario, the VNC Server and the two linux machines were Virtual machines on a remote Proxmox VE server. This was useful to configure the remote router from a browser in the machine with the VNC Server.

Example Network Parameters

All parameters have been chosen to be unique so that they can be identified in the screenshots here.

  • VNC Server IP: 10.0.0.5
  • VNC Server Port: 5900
  • Forwarded VNC Server Port on localhost: 5903
  • Linux Proxy Host: mydomain.dyndns.org
  • Linux Proxy Host's SSH Port opened on the WAN: 22
  • Linux Port Forwarding Host: 10.0.0.6
  • Linux Port Forwarding Host's SSH Port opened on LAN only: 22
  • Proxy Port: 3000

Client Software

On the Windows VNC client machine, we need to have the following installed:

PuTTY Connections

Fire up PuTTY on the Windows Client Machine and setup the connections below. Don't forget to give each connection a name and save it for later use.

Proxy Connection

File:proxy-connection1.jpg

The destination textbox is blank below.

File:proxy-connection2.jpg

On the final page after saving the connection, click on Open button and login with the appropriate credentials.

File:proxy-connection3.jpg

Port Forwarding Connection

File:tunnel-connection1.jpg

File:tunnel-connection2.jpg

A SOCKS 5 connection for the proxy on localhost is generally assumed.

File:tunnel-connection3.jpg

Save the connection and click on Open button and login with the appropriate credentials.

File:tunnel-connection4.jpg

VNC Connection

Fire up the VNC Viewer on the Windows Client Machine and connect to the VNC Server machine (Port 5903 is desktop 3):

File:vnc-connection1.jpg

Virtual Appliances