Bug #78661 [NEW]: ssh2_auth_pubkey_file(): Authentication failed using public key: Callback retur
| From: | mistermadness at ya dot ru | Date: | Fri, 11 Oct 2019 08:47:57 +0000 |
| Subject: | Bug #78661 [NEW]: ssh2_auth_pubkey_file(): Authentication failed using public key: Callback retur | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223171@lists.php.net to get a copy of this message | ||
From: mistermadness at ya dot ru
Operating system: Debian 10
PHP version: 7.3Git-2019-10-11 (snap)
Package: *Encryption and hash functions
Bug Type: Bug
Bug description:ssh2_auth_pubkey_file(): Authentication failed using public key: Callback retur
Description:
------------
PHP 7.3.9-1~deb10u1 (cli) (built: Sep 18 2019 10:33:23) ( NTS )
I have two virtual machines one Debian 9.3 and I connect successfully,
another machine is Debian 10.1 and I recieve message
ssh2_auth_pubkey_file(): Authentication failed for subscr using public
key: Callback returned error.
Difference in libSSH version Debian 9.3 - libssh2/1.7.0, Debian 10 -
SSH-2.0-libssh2_1.8.0
It looks like some problem with key auth.
Test script:
---------------
$this->connection = ssh2_connect($host, $port,
array('hostkey'=>'ssh-rsa'));
if (ssh2_auth_pubkey_file($this->connection, $username, $rsapath,
$rsapubpath)) {
//echo "Public Key Authentication Successful\n";
} else {
die('Public Key Authentication Failed');
}
Expected result:
----------------
Connect and recieve Public Key Authentication Successful
Actual result:
--------------
Warning: ssh2_auth_pubkey_file(): Authentication failed for subscr using
public key: Callback returned error in
/usr/local/nginx/html/cms/admin/classes/sshCron.php on line 18
Public Key Authentication Failed
--
Edit bug report at https://bugs.php.net/bug.php?id=78661&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78661&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78661&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78661&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78661&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78661&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78661&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78661&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78661&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78661&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78661&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78661&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78661&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78661&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78661&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78661&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78661&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78661&r=mysqlcfg