Re:SSH Tunneling Explained
by grifball on Sunday October 10, 2021 @07:10AM
(#28817483)
For most use cases, you should also add a local bind, "-Llocalhost:5900:localhost:5900" or else everyone at the coffee shop will be able to access your insecure Vnc server
[ Parent
| on HN ]
Re:SSH Tunneling Explained
by adrianmonk on Sunday October 10, 2021 @02:22PM
(#28820729)
Seems to be the default for me.
The manual page says, "By default, the local port is bound in accordance with the GatewayPorts setting."
I don't see GatewayPorts in any of the config files, so the binary (at least mine) is probably built to have this off by default. Which seems like a sensible setting.
EDIT: It can't hurt to be sure, though. Especially if you're running ssh commands on different computers or writing a script that runs ssh.