|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-10-11 09:40 UTC] cmb@php.net
-Package: *Encryption and hash functions
+Package: ssh2
[2019-11-21 08:55 UTC] lukas dot zierer at abf dot ch
[2020-08-07 11:47 UTC] andras dot kovacs at videosqr dot com
[2020-09-13 20:05 UTC] pierre dot h dot du40 at outlook dot fr
[2021-01-05 13:10 UTC] l dot fuerderer at gmail dot com
[2021-10-22 09:41 UTC] liyang1025 at gmail dot com
[2022-04-27 13:48 UTC] pierre dot h dot du40 at outlook dot fr
[2023-05-03 12:49 UTC] amerkulow at yandex dot ru
[2023-05-07 19:32 UTC] jambu dot atchison at gmail dot com
[2023-05-07 19:38 UTC] jambu dot atchison at gmail dot com
[2023-06-14 07:18 UTC] alltravelingnews at gmail dot com
[2023-12-07 01:50 UTC] ikechianya1 at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
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