Re: Hoping for a working example of SFTP in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes my example is only for password auth, this function below needs to be added for pubkey auth which I have not done.

I would see here and the note there too, there are some comments too which might help but some look downvoted:
https://www.php.net/manual/en/function.ssh2-auth-pubkey-file.php

Kind regards,

Scott

First Class Watches
9 Warwick Road
Kenilworth
CV8 1HD
Warwickshire
United Kingdom


On Mon, 25 Jan 2021 at 13:47, David Spector <david025@xxxxxxxxxxxxxxxxxxxxxx> wrote:
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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux