SSH tunnel through two servers to access a web service on port 9091
First set up so you can ssh from your PC "directly" to remote1:
In your .ssh/config put:
Host remote1
Proxycommand ssh -q -l <myuser.on.lan1> lan1 nc -w 600 localhost 16864
Make sure netcat (nc command) is installed on lan1.
You should now be able to ssh from your pc with:
ssh <myuser.on.remote1>@remote1
once this works, use:
ssh -L8888:localhost:9091 <myuser.on.remote1>@remote1
and you have access to transmission on remote1:9091 via localhost:8888