A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding (opens in new tab)
My favorite use of this is peer-to-peer transfer of Docker images. The Docker CLI only allows you to use registries authenticated with HTTPS but there's an exception where it allows HTTP transfers over localhost.
Read the original article