curl-library
Re: How to deal with Authentication failure
Date: Mon, 27 Oct 2008 10:10:41 -0700
On Mon, Oct 27, 2008 at 04:31:36PM +0800, changqin_gang wrote:
> After days of smoothly running, my sFtp client code now striked for some "SSH
> Authentication failure" reason.
>
> As the debugging information below shows: first time I just link to the sFtp
> server (nothing performed) using user and password, it succeeded, but when I
> try to do something like UPLOAD,REMOVE,etc.,it tells me "Authentication
> failure" after connected the server.
>
> How to resolve it?
Are you trying to use a public key? The error message says that it's not
available:
> Using ssh public key file id_dsa.pub
> Using ssh private key file id_dsa
> SSH public key authentication failed: Unable to open public key file
If you're using a password authentication, are you supplying the correct
user name and password?
There is a known issue with libssh2 that causes authentication to fail
randomly about 1% of the time (bug #1832491), but that's unlikely to be
the problem here if it happens consistently.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-10-27