|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79379 Unable to exchange encryption keys
Submitted: 2020-03-13 10:45 UTC Modified: 2021-02-21 04:22 UTC
From: scoccac at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: ssh2 (PECL)
PHP Version: Next Minor Version OS: Ubuntu Server 16.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
15 + 40 = ?
Subscribe to this entry?

 [2020-03-13 10:45 UTC] scoccac at gmail dot com
ssh2_connect function can't establish a connection to the server. It give this error:

"Error starting up SSH connection(-5): Unable to exchange encryption keys"

It worked but maybe after an upgrade I have this problem. I don't know if the upgrade regard server or client. 
Obviously the server is up and ssh connection with ssh command prompt work fine.  

Test script:
$this->connection = ssh2_connect($host, $port);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-13 11:50 UTC]
You may need a newer libssh2[1], in which case this would not be a PHP issue.

[1] <>
 [2021-02-10 15:36 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-10 15:36 UTC]
If you still have this issue, please mention the version of PHP,
ssh2 and libssh2 you are using.
 [2021-02-21 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 01:05:46 2022 UTC