The power of SSH tunneling. How it can make your developer life easier
This is where local port forward comes in handy. Just create an SSH connection to your remote server, like the earlier example, but this time you must add a flag that is telling the SSH program to forward a specific hostname and port:
$ ssh -L
Remote port forwarding is like the opposite of local port forwarding. It will forward all requests on a remote servers’ port to your machine.
$ ssh -R
May 28, 2019 at 2:44:59 PM EDT
*
FILLER