cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to deal with Authentication failure

From: changqin_gang <changqin_gang_at_sina.com>
Date: Mon, 27 Oct 2008 16:31:36 +0800

After days of smoothly running, my sFtp client code now striked for some "SSH Authentication failure" reason.

As the debugging information below shows:&nbsp;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?

=================Debug information==============================

&nbsp; Trying 192.168.1.166... connected
Connected to 192.168.1.166 (192.168.1.166) port 22 (#0)
SSH authentication methods available: publickey,password
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
Initialized password authentication
Authentication complete
Connection #0 to host 192.168.1.166 left intact
CDelayedNotificationWindow -- Creating the notification window
The thread 0xC224 has exited with code 0 (0x0).

About to connect() to 192.168.1.166 port 22 (#0)
&nbsp; Trying 192.168.1.166... connected
Connected to 192.168.1.166 (192.168.1.166) port 22 (#0)
SSH authentication methods available: publickey,password
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
Authentication failure
Closing connection #0

=================Debug information==============================

-------------------------------------------------------------------
新浪空间——与朋友开心分享网络新生活!(http://space.sina.com.cn/ )
Received on 2008-10-27