Re: Hoping for a working example of SFTP in PHP

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

 



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@xxxxxxxxxxx:/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



[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