This is a ‘How to’ connect to a device behind a router or Linux machine to the network behind and there are no port forwards in place etc. Really handy to get you out of a pickle or you do not not want any port forwards for security reasons. Anyway, this is how you can use PuTTY to create an SSH tunnel.
Open putty and expand SSH >> TunnelsEnter the destination IP address and port number for the device behind the router/device that you want to connect to. In this example I’m connecting to 192.168.0.1 on port 80.
Enter the ‘Source port’. This can be anything really up and I’ve used 5555 here. Click ‘Add’ and make sure the IP and port are in the ‘forwarded ports’ box. You can also add more than one port forward but you will have to change the port number each time.
Enter the IP address and the port number of the device you are connecting through in Session. The default SSH port is 22. Click ‘Open’ and connect in the normal way.
I’m looking to connect to a webpage behind a router so now open your browser of choice and browse to 127.0.0.1:5555
Bingo! Now you can connect to a device behind a router using an SSH tunnel.