This month's Index
Subject: Re: Request for help for beginner, thanks!
Re: Request for help for beginner, thanks!
From: Peter Stuge <peter_at_stuge.se>
Date: Mon, 18 Jan 2021 19:49:55 +0000
David Spector wrote:
Please be aware that the community on this mailing list is the author
libssh2 (this our project here) includes various examples, also written
libssh2 does support all authentication methods of the SSH v2 protocol.
To learn more about the SSH protocol architecture I can really
SFTP is a so-called subsystem within the SSH architecture.
(This is not to be confused with the traditional FTP protocol secured
As far as I know, the ssh2 PHP extension is not developed by anyone
It is however true that libssh2 was initially created to serve as the
I honestly don't know who (if anyone?) maintains the PHP ssh2 extension.
If I've understood history correctly then the PHP ssh2 extension was
The cURL project was mentioned - that's actually also primarily a C library
The PHP curl extension uses libcurl directly.
libcurl supports, among other protocols, SFTP.
libcurl happens to use libssh2 to realise SFTP file transfers. :)
libcurl is quite popular and can be simpler to use than libssh2 in C,
Taking a quick look at the PHP ssh2 SFTP support it looks like that's
There is a very simple example of uploading a file using SFTP in PHP
Following the example, the first user comment includes a class wrapper.
This comment further down shows what is needed for publickey authentication
You'll obviously have to change 'r' to 'w' in the fopen call to write files
> (example: the words "key" and "password" actually can apply to two or
Hm - which two different parameters do you mean? Maybe there is some
If you have improvements for the PHP ssh2 extension documentation I'm sure
Hope this helps