Friday, March 21, 2008

How to resolve channel 1: open failed: administratively prohibited: open failed

There are a few reasons why you could get

channel 1: open failed: administratively prohibited: open failed

But essentially it means the port you are trying to tunnel into on the remote machine cannot be opened

To debug the issue
  • If you have access to the remote machine check /var/log/secure to get more information on error
  • You could try ssh tunnel in verbose mode with -v option
  • Try with a different port number on the remote host just to test - some ports are reserved
To resolve the issue - Depending on what the error was from debugging you might have to
  • If the error in the secure log was cannot resolve host name - it means you need to restart your network service or interfaces - it could be due to dns server issues
  • restart sshd on the remote server - make sure port forwarding is enabled in your ssh config - there are plenty of resources on the net that will explain this

No comments: