|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-10 14:13 UTC] mikesul@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
Description: ------------ Hi, I got the below error while trying to use ssh2_connect on Mandriva 7.1 OS. Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH connection(-5): Unable to exchange encryption keys in /home/nprasanna/test/CVSManager/apache/cvsmanager/a.php on line 2 But the same libraries were working fine in RedHat 8. I compiled all the libraries in RedHat 8 Machine and trying to run on higher versions. I used libssh2-0.14 Apache 2047 ssh2 - 0.10 I used the following libraries: libphp5.s0 ssh2.so libssh2.so Can anyone tell us how to fix this. prasanna Reproduce code: --------------- <?php //phpinfo(); $conn=ssh2_connect("nprasanna",22); var_dump($conn); ?> Expected result: ---------------- Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH connection(-5): Unable to exchange encryption keys in /home/nprasanna/test/CVSManager/apache/cvsmanager/a.php on line 2 Actual result: -------------- stream of type