ssh forwarding


Did i say how much i love the ability to do a port forwarding with ssh ?

The problem: My router has a web interface which it is acceptable only from my internal network.
That mean that i cannot change anything if i am not home. OK i can use a lynx from one of my internal machines but the interface doesn’t work correctly.

SSH forwarding does your life easier: Setup a port forwarding using an ssh client for your localmachine port lets say 1234 to connect to the other machine port 80.
The command is the following:

ssh -C -L 1234:themachineyouwanttoreach:80 username@domain.com

After you login to your ssh server you can use a http://localhost:1234 and you are up and running

Simple