> On Jan 17, 2021, at 12:40 PM, David Spector <d...@springtimesoftware.com> 
> wrote:
>  It seems that nobody has any complete and working code posted on the Web 
> anywhere, including in the PHP Manual itself.

I have never used PHP and know nothing about the libssh2 binding for it, but a 
quick web search shows lots of examples and documentation of people doing sftp 
with PHP.  E.g.,

<https://www.php.net/manual/en/function.ssh2-sftp.php>

which appears to be using libssh2 under the hood with a PHP extension built on 
top of it (<https://www.php.net/manual/en/install.pecl.windows.php>).

or this one:

<https://phpseclib.com/docs/sftp>

which appears to be a pure PHP library.

Search for the word "key" on those pages and you will see examples of uploads 
that use a key instead of a password.

________________________________________
Craig A. Berry

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser


_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to