Re: Hoping for a working example of SFTP in PHP
| From: | David Spector | Date: | Mon, 25 Jan 2021 13:47:33 +0000 |
| Subject: | Re: Hoping for a working example of SFTP in PHP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327419@lists.php.net to get a copy of this message | ||
Dear Scott,
Thank you for your good-looking example code.
When I ran it, function call "ssh2_auth_password($connection, $user, $password)" generated the following message:
"Warning: ssh2_auth_password(): Authentication failed for *** using password in upload.php on line 37"
Note that private key authentication is one of the problem areas of all the other SFTP examples I have been able to find on the Web.
I have spent weeks trying to find a working example.
David