SSH tunnel to home network, and access router web interface
The straight ssh
command for this without puTTY is...
ssh user@host -L localport:routerip:remoteport
and then open http://localhost:localport in your browser.
Thanks to MaQleod for showing me the ssh switches.
(P.S. Don't go putting passwords in plaintext! avoid the -pw
switch)
Download putty if you don't already have it, the format you need for this is:
putty -ssh username@publicip -pw password -L localport:privateip:destinationport
Here is what you would use to get to 192.168.1.1 remotely through SSH:
putty -ssh username@publicip -pw password -L 8080:192.168.1.1:80
You could then open up a web browser to 127.0.0.1:8080 on the computer you created the tunnel with and up would pop the router interface.