My /var/log/auth.log contained: Received request to connect to host 127.0.0.1 port 10001, but the request was denied. This gave me a similar problem with monitoring port: autossh -M 10001 -o GatewayPorts=yes -o ServerAliveInterval=60 -o TCPKeepAlive=yes -T -N -R :10000:localhost:22 -i ~/.ssh/id_rsa had that message (after 10 minutes): channel 2: open failed: administratively prohibited: open failed I had the same problem using ~/.ssh/authorized_keys with permitopen.Īs I use autossh to create a tunnel, I need two ports: Full syntax in the authorized_keys(5) manpage.Full syntax in the sshd_config(5) manpage.Not relevant to your particular command, but somewhat relevant to this topic as well, is the PermitTunnel option if you're attempting to use the -w option. PermitOpen is either not present, is commented out, or is set to any Īdditionally, if you are using an SSH key to connect, you should check that the entry corresponding to your SSH key in ~/.ssh/authorized_keys does not have no-port-forwarding or permitopen statements.AllowTCPForwarding is either not present, is commented out, or is set to yes.These options can be found in /etc/ssh/sshd_config. AllowTcpForwarding (as Steve Buzonas mentioned).Since you are using -L (also applicable to -D), there are two options in question that are causing your SSH server to reject this request: This typically comes from -D, -L or -w, as separate channels in the SSH stream are required to ferry the forwarded data across. The above message refers to your SSH server rejecting your SSH client's request to open a side channel. Channel 1: open failed: administratively prohibited: open failed
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |