cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem authenticating with DSA key using SFTP and CURL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 29 Nov 2011 22:25:39 -0800

On Tue, Nov 29, 2011 at 07:14:57AM -0800, Alvaro Palma wrote:
> But in the other hand, libCURL is not capable to use the RSA key. I made the test, remove temporarily the DSA key from ~/.ssh and the error changed:
>
> * About to connect() to REMOTE_SERVER port 22 (#0)
> * Trying 10.12.198.52... * connected
> * SSH authentication methods available: publickey,gssapi-with-mic,password
> * Using ssh public key file /remote/home/alvaro/.ssh/id_dsa.pub
> * Using ssh private key file /remote/home/alvaro/.ssh/id_dsa
> * SSH public key authentication failed: Unable to open public key file
> * Authentication failure
> * Closing connection #0

I've never had a problem using RSA keys. Try the --key and --pubkey options
to specify explictly the files you want. Note that both are required.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-30