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 13:07:49 +0100

sftp -i ~/.ssh/id_rsa user_at_host:/home/user
Connected to host.
Changing to: /home/user
sftp> quit

curl -key ~/.ssh/id_rsa --upload-file afile -u user --url
sftp://host/home/user/afile
Enter host password for user 'user':

curl --version
curl 7.63.0 (x86_64-pc-msys) libcurl/7.63.0 OpenSSL/1.1.1a zlib/1.2.11
brotli/1.0.7 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0
nghttp2/1.35.1
Release-Date: 2018-12-12
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp
scp sftp smb smbs smtp smtps telnet tftp

Am Mi., 9. Jan. 2019, 11:50 hat Jan Stary <hans_at_stare.cz> geschrieben:

> > Am Mi., 9. Jan. 2019, 07:02 hat Jan Stary <hans_at_stare.cz> geschrieben:
> > > Your --key is not a --cert
>
> On Jan 09 09:50:17, juergen_at_jwi.de wrote:
> > But how can I have curl login with an ssh key to a sftp server?
>
> Hint: --key
>
> > > > 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
> -----------------------------------------------------------
> 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