curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: What Am I Doing Wrong With cURL and SFTP?

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 25 Aug 2020 12:48:39 +0200 (CEST)

On Tue, 25 Aug 2020, Michael Newman wrote:

> If I use sftp all by itself, it seems to default to my home directory:
>
> But, if I use curl with sftp, I have to tell it to go to my home directory:
>
> curl -u mgnewman: --pubkey ~/.ssh/id_rsa.pub sftp://ftp.myhost.com/~/
>
> Why the difference?

There's a very important key difference here: curl works on URLs, the sftp
command line tool does not.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-08-25