#38984 [NEW]: ssh-rsa unusable with ssh2_connect
| From: | dblais at interplex dot ca | Date: | Thu, 28 Sep 2006 19:33:03 +0000 |
| Subject: | #38984 [NEW]: ssh-rsa unusable with ssh2_connect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-102864@lists.php.net to get a copy of this message | ||
From: dblais at interplex dot ca
Operating system: FreeBSD 6.1
PHP version: 5.1.6
PHP Bug Type: OpenSSL related
Bug description: ssh-rsa unusable with ssh2_connect
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.
--
Edit bug report at http://bugs.php.net/?id=38984&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38984&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38984&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38984&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38984&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38984&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38984&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38984&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38984&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38984&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38984&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38984&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38984&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38984&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38984&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38984&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38984&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38984&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38984&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38984&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38984&r=mysqlcfg