curl-users
Private key authentication problem
Date: Mon, 13 Apr 2009 17:35:39 -0400
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
-- Timothy A. Kloos NCD Corp. 33801 Curtis Blvd. #100 Eastlake, OH 44095 Phone: 440-953-4488 Fax: 440-953-9361 tkloos_at_ncdcorp.com ------------------------------------------------------------------- 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.htmlReceived on 2009-04-13