Wednesday, November 28, 2012

Simpler SSH Tricks

So last time i said that basically you had to create a bunch of reverse port forwards to get that whole odd tunnel system to work. Well, you actually dont.

C still has to have a reverse tunnel to B, but on A all you have to do is create a local port forward. So, on A:
ssh -L $local_listen_port:localhost:$remote_listen_port $user@$B

now just:
 ssh -D localhost:$local_socks_port $user@localhost -p$local_listen_port 

No comments:

Post a Comment