Connect to your local router from wan through ssh

In a previous post, I've described how to open remote management for your bbox2 / local modem-router via ssh.

I've found an easier and more secure way to achieve this :

Prerequisites :
* You have PuTTY (or an ssh client)
* ssh server on your local network is reachable from wan

In PuTTY settings > Connection > SSH > Tunnels, define the following :

  • Source port : 8080 (or any free port on your computer running PuTTY)
  • Destination : 192.168.1.1:80 (assuming your router ip is 192.168.1.1 and the default web interface running on port 80)
  • Click on [Add]
  • Apply changes

You can now connect on your router web interface from your computer running PuTTY via the following address : http://localhost:8080/

Comments

Popular posts from this blog

Resolve "Cannot download packages whilst offline" issue in Deja-Dup backup software

ubuntu 20.04 / netplan / change mac address and static ip

Connect the Xiaomi Yi Ants Cam to your Synology Surveillance Station