-
The StackOverflow discussion What's ssh port forwarding and what's the difference between ssh local and remote port forwarding [duplicate] has a good visual comparison/explanation of the difference between the
ssh -L(-Lstands for local) andssh -R(-Rstands for remote). -
sshtunnel is a Python implementation of SSH …