When using Windows, I use VanDyke SecureCRT to connect to my Linux machines, which include servers running Red Had Enterprise Linux (RHEL), CentOS, and the Debian-derived Ubuntu. Everything was working fine until today.

Though I was playing around with the SSH configuration files to get SFTP transferred files to set a specific file permissions mask (umask), I don’t think I changed anything that would have caused this error:

“Connection to session XXXX failed: The server has disconnected with an error. Server message reads: A protocol error occurred. bind: Permission denied.”

eoe-crt-error.jpg

“Connection to session XXXX failed: The server has disconnected with an error. Server message reads: A protocol error occurred. bind: Permission denied.”

The problem occurred on the Debian/Ubuntu based machine. Interestingly, the error only occurred when using SecureCRT – sftp via Sftpdrive worked great, and connecting to the machine via other SSH clients worked fine as well.

After trying everything I could think of, including changing authentication methods, user names, etc, and after much searching, I finally found a solution over in the HP forums:

Got it working. Fix is:
in SecureCRT

Options -> Global Options -> SSH2 Options

Turn off Option: Enable OpenSSH agent forwarding

eoe-crt-fix.jpg

Easy enough fix, but it took me about an hour to find the solution. If yo urun into the same problem, hopefully you’ll find this post much quicker than I found the HP solution.