curl-users
Re: Private key authentication problem
Date: Tue, 14 Apr 2009 07:59:18 +1000
On 2009-04-14 07:35, Tim Kloos wrote:
> Hello,
>
> In the online document: http://curl.haxx.se/docs/manual.html, there's
> the following:
>
> Get a file from an SSH server using SCP using a private key to
> authenticate:
>
> curl -u username: --key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub
> \ scp://shell.example.com/~/personal.txt
>
> Unfortunately, this is not working for me. I tried using this command
> specifically:
>
> curl -T hi -u user: --key ~/.ssh/id_rsa --pubkey ~/.ssh/id_rsa.pub
> --limit-rate 1M sftp://host/home/user/hi.txt
>
> As you can see, I don't include the "\" and I use rsa instead of dsa -
> maybe that's what problematic.
> However, when I type the command "ssh hostname" I am able to get through
> using the same keys listed in the
> command. Any ideas?
>
> Thanks
>
These are different protocols, scp != sftp.
Cheers,
Georg
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-14