multi-hop ssh port forwards?
Matt Brodeur
mbrodeur at NextTime.com
Mon Oct 18 10:42:01 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Oct 18, 2004 at 10:15:10AM -0400, Bill McGonigle wrote:
> 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.
I think you're looking for something like this:
$ ssh -L 8000:localhost:8000 myserver ssh -L 8000:insideserver:80 bastion
It's just one ssh client spawning another, each with the necessary
port forwarded. This could probably be extended to dynamic port
forwarding (-D), but I've never tried that.
- --
Matt Brodeur RHCE
MBrodeur at NextTime.com http://www.NextTime.com
A bird in the hand is safer than one overhead.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBc9Ytc8/WFSz+GKMRAowaAKCxWa8uw0rQGyb3dASZm0nCCHGv9gCffdNA
3DQnWxRmGP/dfP0+3uNcJIo=
=iQbC
-----END PGP SIGNATURE-----
More information about the gnhlug-discuss
mailing list