Você precisa definir o GatewayPorts
em sshd_config
, caso contrário, o *
ou 0.0.0.0
será vinculado apenas à interface de loopback.
Observe também que
Privileged ports can be forwarded only when logging in as root on the remote machine.
Da página de manual de ssh
:
By default, TCP listening sockets on the server will be bound to the loopback interface only. This may be overridden by specifying a
bind_address
. An empty bind_address, or the address ‘*’, indicates that the remote socket should listen on all interfaces. Specifying a remotebind_address
will only succeed if the server's GatewayPorts option is enabled (see sshd_config(5)).