I have a freenas server with an ssh port open to the internet.
I want to access a server within the network the nas is in, so I used an ssh port forward like this: ssh -N -L 8080:host:80
Running that seems fine at first put when i try to use that port forward i get these messages:
channel 2: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failedI already checked the options AllowTcpForwarding and PermitOpen as mentioned here:
This did not resolve my problem.
1 Answer
The problem seems to be that i used the root user.
- ssh -N -L 8080:host:80 root@host ~ does not work
- ssh -N -L 8080:host:80 user@host ~ does work
I'm not sure if that is specific to freenas, bsd or sshd in general.