curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: upload-file with cert

From: Jürgen Weber <juergen_at_jwi.de>
Date: Wed, 9 Jan 2019 09:50:17 +0100

you are most certainly right.

But how can I have curl login with an ssh key to a sftp server?

Am Mi., 9. Jan. 2019, 07:02 hat Jan Stary <hans_at_stare.cz> geschrieben:

> Your --key is not a --cert
>
> On Jan 09 00:16:10, juergen_at_jwi.de wrote:
> > Hello,
> >
> > what's the curl equivalent of
> >
> > sftp -i .ssh/my.id_rsa user_at_host:/home/user/public_html/
> >
> > I tried
> >
> > curl -k --cert .ssh/my.id_rsa --upload-file my.zip
> > sftp://user@host:/home/user/public_html/
> >
> > but this gives
> >
> > curl: (67) Authentication failure
> >
> > Greetings,
> > Jürgen
> >
> > -----------------------------------------------------------
> > Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> > Etiquette: https://curl.haxx.se/mail/etiquette.html
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-01-09