multi-hop ssh port forwards?

Bill McGonigle bill at bfccomputing.com
Mon Oct 18 10:16:00 EDT 2004


Has anybody figured out how to do ssh tcp port forwards across multiple 
hops?

I'd like to ssh -L from any client, to a known server, then a bastion 
host, and do port forwards from my client machine to the bastion host 
to access a port on a machine behind the bastion host.

e.g.:

Client                                 Bastion      Inside
listen <---> My Server <-|firewall|-->  Host  <---> Service
-L:8000                                             Port 80

It's trickier than I expected and haven't found much on Google.  I'm 
trying to avoid using ppp over ssh or a VPN if I can.

-Bill
----
Bill McGonigle, Owner           Work: 603.448.4440
BFC Computing, LLC              Home: 603.448.1668
bill at bfccomputing.com           Cell: 603.252.2606
http://www.bfccomputing.com/    Text: bill+text at bfccomputing.com




More information about the gnhlug-discuss mailing list