LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh -D "channel 6: open failed: administratively prohibited: open failed" (https://www.linuxquestions.org/questions/linux-networking-3/ssh-d-channel-6-open-failed-administratively-prohibited-open-failed-728219/)

1veedo 05-24-2009 02:38 PM

ssh -D "channel 6: open failed: administratively prohibited: open failed"
 
I'm getting these messages Over SSH with the -D switch
Code:

channel 6: open failed: administratively prohibited: open failed
channel 43: open failed: connect failed: Connection timed out

At uni I did this for a couple of reasons, primarily to connect to trackers for bittorrent. I would get these messages fairly often but I never thought much of it because I figured I was just loosing packets over the network or something (understandable in my situation). At home I decided to continue to use this method because that computer is set up in DMZ and is very useful. I havn't received many of these messages but recently all my torrents stalled and I had a whole bunch of these messages. Is it possible my computer just cant handle all the network connections (it's a 2ghz AMD running debian)?

What exactly do these messages mean? Is there any way to optimize my connection in any way?

foodown 06-24-2009 09:23 PM

You need to set 'GatewayPorts' to 'yes' in your 'sshd_config' file.

Otherwise, you'll see lot of errors like the ones you are talking about.

Just make sure that these lines are in your sshd_config file:
Code:

AllowTcpForwarding yes
GatewayPorts      yes

If most of your traffic is working you most likely either already have the 'AllowTcpForwarding' option set properly, or it is unset. Yes is the default. 'GatewayPorts,' however, defaults to no.


All times are GMT -5. The time now is 01:54 PM.