ssh port forwarding

Updated: 16 November 2023

What’s ssh port forwarding and what’s the difference between ssh local and remote port forwarding

-R Specifies that connections to the given TCP port or Unix socket on the remote (server) host are to be forwarded to the local side.
-L Specifies that connections to the given TCP port or Unix socket on the local (client) host are to be forwarded to the given host and port, or Unix socket, on the remote side.

Leave a comment