php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38984 ssh-rsa unusable with ssh2_connect
Submitted: 2006-09-28 19:33 UTC Modified: 2006-09-28 19:50 UTC
From: dblais at interplex dot ca Assigned:
Status: Not a bug Package: OpenSSL related
PHP Version: 5.1.6 OS: FreeBSD 6.1
Private report: No CVE-ID: None
 [2006-09-28 19:33 UTC] dblais at interplex dot ca
Description:
------------
As soon as I'm using array('hostkey' => 'ssh-rsa') in the methods field of the ssh2_connect function, I get the following error message:

Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in [...] on line x.

It is triggered by the ssh2_connect function so it doesn't even reach the ssh2_auth_pubkey_file function...


I need it to connect with a rsa pair of key. Any idea?

I'm running FreeBSD 6.1 with libssh2-0.14 and pecl-ssh2-0.10.



 

Reproduce code:
---------------
$connection = ssh2_connect('ip_address', 22, array('hostkey' => 'ssh-rsa'));


Expected result:
----------------
it shouldn't complain about its inability to exchange encryption keys, we're not yet at this step.

Actual result:
--------------
Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in [...] on line x.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-28 19:50 UTC] bjori@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please report bugs in pecl extension in the pecl bug 
tracker.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC