08 април, 2019

Accessing the EdgeRouter WEB UI through SSH

This is a simple and easy hack, but one I couldn't find when I searched for it.
So you want to access the WEB UI and you are not in your home network. But you have enabled the SSH access from the internet.

I assume the following:
  • You have an EdgeRouter
  • You have SSH access from the Internet to the router (Check this if you don't know how)
  • The WEB UI is currently only accessible from the behind NAT on https:192.168.1.1
With a command line ssh client you can run:
 ssh -L 9000:192.168.1.1:443 user@example.com

 The equivalent in PuTTY is in Connection -> SSH -> Tunnels page.
  • Source port - 9000
  • Destination - 192.168.1.1:443
  • Don't change anything else, radio buttons should be on Local and Auto.
  • Click the Add button
  • Open the connection
After the connection is opened successfully, open https://localhost:9000 in your browser and accept the security warning.

That's it.

Няма коментари: