cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: SFTP: public key authentication failed

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 11 Jul 2012 23:38:38 +0200

On Wed, Jul 11, 2012 at 09:24:04AM -0300, Vinicius Massuchetto wrote:
> I get this output:
>
> * About to connect() to <host> port 22 (#0)
> * Trying <ip>... connected
> * SSH host check: 0, key: <key>
> * SSH authentication methods available: publickey,password
> * Using ssh public key file /home/<myuser>/.ssh/id_dsa.pub
> * Using ssh private key file /home/<myuser>/.ssh/id_dsa
> * SSH public key authentication failed: Unable to open public key file
> * Authentication failure
> * Closing connection #0
>
> What can be the issue?

It's a long shot, but could it be that the public key file could not be
opened?

> Please let me know if I can provide more information.

Do the files /home/<myuser>/.ssh/id_dsa.pub and /home/<myuser>/.ssh/id_dsa
exist, are readable and contain the correct keys?

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-11