Re: What Am I Doing Wrong With cURL and SFTP?
Date: Mon, 24 Aug 2020 15:05:11 +0700
How silly of me to overlook that. Thank you.
> On Aug 24, 2020, at 14:52, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Mon, 24 Aug 2020, Michael Newman via curl-users wrote:
>> pi_at_raspsky:~/webcam $ sftp mgnewman_at_ftp.myhost.com
>> Connected to mgnewman_at_ftp.myhost.com.
>> sftp> put testxx.jpg
>> Uploading testxx.jpg to /home3/mgnewman/testxx.jpg
> The SFTP client puts that file in your home directory.
>> $ curl -k -u mgnewman: --key ~/.ssh/id_rsa --pubkey ~/.ssh/id_rsa.pub sftp://ftp.myhost.com/ -T "testxx.jpg"
> The SFTP URL here implies the root directory. If you want to put the file in your home directory you need to specify that. Possibly by using the URL "sftp://ftp.myhost.com/~/".
> / daniel.haxx.se | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> | https://www.wolfssl.com/contact/