I know I can create an ssh tunnel and then tell a program (with tsocks) to use it for networking. But. How can I put an ssh tunnel in an ssh tunnel? I mean I can't again use the tsocks in tsocks because I can't provide a good tsocks.conf [and not a solution even if someone could:)].
So how can I tell an ssh tunnnel to use an ssh tunnel?
PC-A ->> ROUTER -->> PC-B
- PC-A: I'm this guy
- ROUTER: this is the router (we don't want port forward on it, only ssh)
- PC-B: the machine that I need to ssh tunnel from PC-A.
So I need a tunnel to the router. Then I need a tunnel that uses the router's tunnel so that I can reach PC-B behind NAT.