Re: Hoping for a working example of SFTP in PHP
| From: | Jonesy via php-general | Date: | Mon, 25 Jan 2021 13:19:31 +0000 |
| Subject: | Re: Hoping for a working example of SFTP in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327416@lists.php.net to get a copy of this message | ||
On Mon, 25 Jan 2021 07:51:56 -0500, David Spector wrote:
> I have a question about uploading a file (text.txt) securely in PHP
> using the SFTP protocol and a public/private key pair.
rsync: an alternate to sftp:
# Upload to example.com/dir/
rsync -avzhe ssh \
/local_dir/dir/TheFile.ext \
remote_user@example.com:/public_html/dir/
HTH
Jonesy
--
Marvin L Jones | Marvin | W3DHJ.net | linux
38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm