SSH tunnel with PuTTY

Imagine, you can SSH to a host / server and use this SSH server as a proxy to access any local webserver (or anything else) on the local network of the SSH server… This is easily possible with PuTTY (awesome SSH client!).
As a demo, lets say we have the following topology:
PuttySSHTunnel
We would like to manage the local firewall (192.168.1.254) from a pc on the internet. We assume   that we can SSH into the SSH server.

Open PuTTY and open Connections – SSH – Tunnels
In source port, we choose a (high) port number which is available on the local pc
As destination we fill in the destination IP and portnumber of the webpage we want to reach
Screen Shot 2015-07-22 at 14.36.33
Click Add
Screen Shot 2015-07-22 at 14.36.47
Go to the start screen of PuTTY: Session And connect to the SSH server
Screen Shot 2015-07-22 at 14.37.04
Log in into the SSH server with your credentials.
And now.. you can open your browser and browse to http://127.0.0.1:1234 and you’ll be redirected to http://192.168.1.1:8080

Leave a Reply

Your email address will not be published.