I tried this to forwarding a local port to a remote port via ssh :
ssh -L 127.0.0.1:[localport]:[nasIP]:[remotenasport] -l admin -N [nasIP] (for example: ssh -L 127.0.0.1:9666:192.168.0.3:9666 -l admin -N 192.168.0.3).
But i got this error:
channel 1: open failed: administratively prohibited: open failed
I start my research and looked into the /etc/ssh/sshd_config on my nas.
I found these lines:
# Example of overriding settings on a per-user basis
Match User root
# X11Forwarding no
AllowTcpForwarding yes
# ForceCommand cvs server
TCPForwarding is only allowed for ROOT, i now tried to connect with the following comand:
ssh -L 127.0.0.1:[localport]:[nasIP]:[remoteport] -l root -N [nasIP] (for example: ssh -L 127.0.0.1:9666:192.168.0.3:9666 -l root -N 192.168.0.3).
And yes it works!