I learned about using
ssh -L port:host:hostport from DigitalOcean tutorials, and later saw the use of
ssh -R port:host:hostport for Remote VSCode extension. I seem to be able to accomplish the same outcome with either
-L. How are they different from each other?
Specifies that connections to the given TCP port or Unix socket on the remote (server) host are to be forwarded to the local side.
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.
man ssh to find more and compare flags descriptions. You can also find ssh manual at https://manpages.ubuntu.com/manpages/bionic/en/man1/ssh.1.html