|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56269 Can't connect (timeout waiting for banner)
Submitted: 2005-01-18 06:28 UTC Modified: 2006-04-17 13:22 UTC
From: e dot colinet at laposte dot net Assigned: pollita (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 5.0.3 OS: Windows NT4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: e dot colinet at laposte dot net
New email:
PHP Version: OS:


 [2005-01-18 06:28 UTC] e dot colinet at laposte dot net
It seems that the ssh2(0.5) doesn't work on my NT4 box (at least).

    $connection = ssh2_connect('', 22);
I get:
    Warning: ssh2_connect(): Error starting up SSH connection(-2): Timeout waiting for banner in ..
    Warning: ssh2_connect(): Unable to connect to X.X.X.X in ..

    $f= fopen("", 'rw');
I get :
    Warning: fopen(): Error starting up SSH connection(-2): Timeout waiting for banner in ..
Additionnaly php crashes (0X00000000 read access) with the fopen wrapper.

The sshd log says:
    Jan 18 12:19:16 sshd[2891]: Did not receive identification string from X.X.X.X


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-18 14:23 UTC]
The banner timeout is an easy one.  I've updated the libssh2 source to fix that (and will nudge the win32 build team to grab a new version of the .lib file so that snaps provides a working one).

On the fopen/read access violation... I'll look into that and see what I can find...
 [2005-01-18 14:29 UTC]
Nevermind "will look" turned out to be an obvious thing.  So we're just waiting on a fresh build of the library and extension, I'll post a followup comment when I hear back from the Win32 guys.
 [2005-05-12 04:03 UTC] tomas dot rollo at grafton dot cz
Hi, it seems nudging the Win32 build team didn't work, I have downloaded the newest build (from 12th of May) and i'm getting the very same banner timeout error.

Could we proceed from nudging to maybe annoying them a bit? :)

Thanks alot
 [2005-06-09 09:04 UTC] subscribed at softhard dot org
I tried newset php_ssh2.dll today on winxp with apache 1.3.12 and I get the same error
 [2005-12-20 08:31 UTC] mauroi at digbang dot com
Why is this closed?
 [2006-01-12 11:10 UTC] roelafca at gmail dot com
Is there already a solution for this problem. Installed the latest build of php_ssh2.dll but problem still occures..
 [2006-01-12 19:41 UTC]
I'll look into reproducing this.

Could each of you (or anyone who does replicate this) report on your environments?

Client OS: e.g. Windows 2003 Server, Windows 95, etc...
Server OS: RHEL9, OpenBSD-3.5, Solaris9-x86, etc..
Server SSH Daemon and version: OpenSSH-3.8p1, Tectia-4.0, Vandyke-5.2, etc...
PECL/ssh2 version: 0.9 or pecl4win date: 20060112
 [2006-01-16 08:30 UTC] k dot szuster at db-central dot com
Is there someone working on this bug ????
 [2006-01-16 14:59 UTC] joey at aeprinters dot com
Windows XP SP2 running IIS 5.1 with PHP 5.1.2

Fedora Core 3 
Kernel 2.6.9-1.667 

OpenSSH_4.2p1, OpenSSL 0.9.7a Feb 19 2003
 [2006-01-23 20:41 UTC] user at cyperion dot mailshell dot com
I just confirmed that this is still a bug. If anyone knows of a fix or workaround, please let me know!

Here's my environment:

Windows 2000 (5.00.2195) Service Pack 4; ssh client and server both running on same host.
PHP 5.1.2 (cli) (built: Jan 11 2006 16:40:00)

PHP SSH2 extension was pulled from this link:

SSH server is the OpenSSH package included with Cygwin 1.5.19 running via cygrunsrv.exe. The server tested good from both the command line (using ssh and sftp) and with the SSH Secure Shell Client (Windows app from SSH Communications Security Corp.).

The error occurs whether the SSH server is set to display a banner or not. I passed in a debug callback to ssh2_connect() to get more info, but it produced no output.
 [2006-02-08 09:25 UTC] frank dot ebener at toennies dot de

i have the same problem in my environment.

sshd-Server SuSE-Linux  2.4.21-138-default
(Works fine with Putty)

Win XP Pro SP2
xampp 1.5.1 for Windows
php 5.1.1 with latest php_ssh2.dll from pecl.
(tried several other version from different sources)

It seems that the problem occurs only at first connect
after some time of inactivity.
All other connect-request succeed.

Any ideas when this problem will be fixed?

 [2006-02-13 15:16 UTC] vishnudreams at yahoo dot com
I'm having the same problem with ssh2 (timeout waiting for banner ... )

system: (client and server on same system)

windows 2000
IIS 5.0
php 5.1.2
php_ssh2.dll last compiled 2006-02-13 (

anyone know a status update on this issue?
 [2006-02-23 05:34 UTC] frank dot ebener at toennies dot de
Is there anybody working on this problem?
Is there any other working solution for ssh / scp with php5?
 [2006-03-25 09:09 UTC] toomuchphp-pecl at yahoo dot com
- Win XP Home SP2
- PHP 5.1.2 windows binary from
- running on Apache 1.3 / EasyPHP.
- Just downloaded php_ssh2.dll tonight from:

"Timeout waiting for banner" error.

I can ssh or sftp to the server using cygwin commands (not php).
 [2006-03-27 12:10 UTC] paulius_k at yahoo dot com
same problem here using:

PHP 5.1.2 on windows xp
OpenSSH 3.7.1p1 on windows 2000
 [2006-04-14 18:21 UTC] paulius_k at yahoo dot com
I am able to connect to the server after bug 5041 was closed.
 [2006-04-17 11:46 UTC] mauroi at digbang dot com
Yep. It works!!!
 [2006-04-17 13:22 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Well then, let's just close this up....
 [2006-04-20 14:33 UTC] paulius_k at yahoo dot com
Thanks a lot for this fix Pollita.

Best Regards,

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 15:01:29 2024 UTC