Tunnelling a connection through 2 servers via ssh
This took a bit of head-scratching, so for future reference, or anyone else looking:
Say I am working outside the office firewall, on a machine called home, and I need to get into a MySQL server inside it. (Doesn’t have to be MySQL, but just for argument’s sake.)
There’s a machine called gateway I can ssh to [...]