As Trouble enabling GatewayPorts for Remote Port Forwarding over SSH is not really solving my problem, I dare to ask:
I run a server on Ubuntu 16.04.5 LTS.
I need to set the option GatewayPorts to yes.
In /etc/ssh/sshd_config I added the line
GatewayPorts yes
but it has no effect.
Neither service ssh reload nor reboot helps.
The output of
sshd -T -C user=me,host=localhost,addr=IP | grep -E "gatewayports"
results always in gatewayports no.
Even sshd -T -C user=he,host=localhost,addr=127.0.0.1 | grep -E "gatewayports" has the same output.
bug or what is my mistake?