SSH tunneling, or port forwarding, allows you to securely forward a network port from a remote server to another machine. This guide explains how to forward a remote service to a third party.
The model for this type of tunnel can be thought of as a three-part chain:
In this scenario, you connect from "Near" to "Middle" to access a port on "Far".