SSH Port Forwarding, aka SSH Tunneling.
Local forwarding is used to forward a port from the client machine to the server machine. Basically, the SSH client listens for connections on a configured port, and when it receives a connection, it tunnels the connection to an SSH server. The server connects to a configurated destination port, possibly on a different machine than the SSH server.
ssh -L <local-listening-port>:<remote-destination-host>:<remote-destination-port> <ssh-server>