SSH Tips, Tricks, and Tools
- From Scott Hunter:
I figured out the correct way to forward through to a private network using ssh. It makes sense, but the man pages are missing some of the necessary information to make it work.
In my case I was trying to reach host:crispytaco which was behind host:hamburgurer from monitoring server:dietcoke.
The way to do this is to initiate the ssh command from dietcoke as such:
dietcoke # ssh -N -f -L 5667:crispytaco:5666 hamburger
Now with an entry in /etc/hosts on dietcoke:
dietcoke can now monitor crispytaco on port 5667. The connection is tunneled magically to my target.