|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73501 after upgrading from php 5.6.27 to php 5.6.28 ssh2 can no longer connect
Submitted: 2016-11-11 22:20 UTC Modified: 2016-11-13 16:14 UTC
From: mgoebel at emich dot edu Assigned:
Status: Duplicate Package: ssh2 (PECL)
PHP Version: 5.6.28 OS: SLES 11 SP4 x64
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: mgoebel at emich dot edu
New email:
PHP Version: OS:


 [2016-11-11 22:20 UTC] mgoebel at emich dot edu
after upgrading from php 5.6.27 to php 5.6.28 ssh2 can no longer connect

just seems to fail to open the stream?

Test script:
echo "<html><body>starting";

$strServer = "X.X.X.X";
$strServerPort = "22";
$strServerUsername = "grad_admissions_images";
$strServerPassword = "password";
$csv_filename = "test123.txt";

//connect to server
$resConnection = ssh2_connect($strServer, $strServerPort);

try {
$s = ssh2_auth_password($resConnection, $strServerUsername, $strServerPassword);
catch (Exception $e) { echo $e->message();}

if ($s == true) {
    //Initialize SFTP subsystem

    echo "connected";
    $resSFTP = ssh2_sftp($resConnection);    
    try {
    $resFile = fopen("ssh2.sftp://{$resSFTP}/".$csv_filename, 'w');
    fwrite($resFile, "Testing");
    catch (Exception $e) { echo $e->message();}
    echo "Unable to authenticate on server";


<h2> all done</h2>

Actual result:
Warning: fopen(ssh2.sftp://Resource id #5/test123.txt): failed to open stream: operation failed in /home/apache2/htdocs/tests/sftp_test.php on line 24


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-13 16:14 UTC]
-Status: Open +Status: Duplicate
 [2016-11-13 16:14 UTC]
See bug #73506.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Apr 11 18:01:23 2021 UTC