Error connection(-13): Failed getting banner

Issues related to software problems.
Post Reply
Eimantas
Posts: 2
Joined: 2013/12/29 11:49:04

Error connection(-13): Failed getting banner

Post by Eimantas » 2013/12/29 11:50:55

I get error when i use ssh2: Error starting up SSH connection(-13): Failed getting banner. And then i cant connect to server via winscp or putty. After i restart vps server, everything fine again for a day and then this happens again. Setting MaxStartups in sshd_config to higher number doesnt help.
I have found one more error "UDP_OpenSocket: socket: No buffer space availableFATAL ERROR" so it means i get full buffer, what should i do? Can i clear somehow automatically udp buffer?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Error connection(-13): Failed getting banner

Post by gerald_clark » 2013/12/30 04:41:12

ssh2?
Where did yo get that?

Eimantas
Posts: 2
Joined: 2013/12/29 11:49:04

Re: Error connection(-13): Failed getting banner

Post by Eimantas » 2013/12/30 11:19:50

For example when i use $stream = ssh2_exec($con, "mkdir /home/blabla/".$blabla."" );

User avatar
TrevorH
Forum Moderator
Posts: 29493
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Error connection(-13): Failed getting banner

Post by TrevorH » 2013/12/30 15:01:10

If you have selinux enabled then httpd is not allowed to make random network connections by default, it's something you have to enable specifically. Run `setsebool -P httpd_can_network_connect 1` to enable it.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 5 - Software Support”