php.net |  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:
MUST BE VALID
Solve the problem:
6 + 13 = ?
Subscribe to this entry?

 
 [2020-03-13 10:45 UTC] scoccac at gmail dot com
Description:
------------
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);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

[1] <https://stackoverflow.com/questions/45882200/unable-to-exchange-encryption-keys>
 [2021-02-10 15:36 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-10 15:36 UTC] cmb@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC