Port forwarding more than once

William Hooper whooper "at" freeshell.org
Fri Jan 9 15:52:01 2004

Rachan Malhotra said:
> Is it possible to create an SSH tunnel among three (or more) machines ?
> I want to create an SSH tunnel from my laptop to a specific server at
> work but this server is behind a firewall.

SSH questions are better asked in SSH lists.

So if I understand your situation, you have SSH on the firewall and it can
see both your client and the server, correct?  You just have SSH forward
the port directly.

ssh -L 5901:server:5901 firewall

William Hooper