I have to access a server quite far away, but can't create the right ssh string, so I beg for help
The servers IP is (to illustrate the example) 123.456.789.012. I can connect with "ssh username@123.456.789.012" and enter the password, and it works. The problem is that I want to connect to the router at 192.168.1.2, via a browser, when I am connected to 123.456.789.012, and I can't figure that out.
I have tried to connect with this "ssh username@123.456.789.012 -L 8080:192.168.1.2:80" and then connect to 192.168.1.2:8080, but it won't work.
TIA,
Peter
Forgot to mention - the servers internal IP is 192.168.1.5