I looked at the ssh manual (man ssh
) and read the definitions for -L
and -R
option but don't quite understand the difference. Both seem capable of forwarding requests to a desired host and port. Can someone trying explaining the difference to a kid… What's the primary different between the two options?
SSH – Difference Between -L and -R Options
linuxportport-forwardingsshssh-tunnel
Related Topic
- SSH – Bad Owner or Permissions on ~/.ssh/config
- Ssh port forwarding is not available (locally) for IP rather localhost only
- Linux – Changing SSH Port: Should I modify only sshd_config, or also ssh_config
- Linux – Difference between iptables -A and -I option
- Linux – Difference between DHCP options ‘Domain-Name’ and ‘Domain-Search’
- Nginx – Direct Python server access with SSH port forwarding fails, but succeeds with intermediate nginx
- Networking – Difference Between Port Forwarding and NAT Forwarding
Best Answer
It's right there, in the man page:
(highlighting by me)
The difference is the direction.
-L
forwards local to remote,-R
the reverse.