In local port forwarding, you are forwarding all traffic to a port on your local machine to a remote machine (via ssh) whereas in remote forwarding you are doing the opposite, specifically, you are forwarding all traffic from a port on the remote machine to a port on your local machine (again, via ssh).
A local port forwarding example is if you want to access a remote database you do ssh local forwarding of a port on your local machine to the db port on the remote machine.
A remote port forwarding example is if you have a web app running on your local machine but you have no public IP setup on the machine, you can setup remote port forwarding to forward traffic from the http port (i.e. 80) of the remote machine to the local port where your web app is running.
In local port forwarding, you are forwarding all traffic to a port on your local machine to a remote machine (via ssh) whereas in remote forwarding you are doing the opposite, specifically, you are forwarding all traffic from a port on the remote machine to a port on your local machine (again, via ssh).
A local port forwarding example is if you want to access a remote database you do ssh local forwarding of a port on your local machine to the db port on the remote machine.
A remote port forwarding example is if you have a web app running on your local machine but you have no public IP setup on the machine, you can setup remote port forwarding to forward traffic from the http port (i.e. 80) of the remote machine to the local port where your web app is running.
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |