~@eeowaa Sam post
- ASCII diagrams inspired by this Stack Exchange answer.
- In all of the examples shown, port 123 must be free on your client host before opening the SSH tunnel.
-T
: Disables pseudo-tty allocation, which is appropriate because you're not trying to create an interactive shell.-N
: Says that you want an SSH connection, but you don't actually want to run any remote commands. If all you're creating is a tunnel, then including this option saves resources.-f
: Tells ssh to background itself after it authenticates, so you don't have to sit around running something on the remote server for the tunnel to remain alive.