projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2ad98d
)
log SSH public key authentication failure and reason
author
Yang Tse
<yangsita@gmail.com>
Fri, 15 Feb 2008 17:00:56 +0000
(17:00 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 15 Feb 2008 17:00:56 +0000
(17:00 +0000)
lib/ssh.c
patch
|
blob
|
history
diff --git
a/lib/ssh.c
b/lib/ssh.c
index
c3cd435
..
929f3cd
100644
(file)
--- a/
lib/ssh.c
+++ b/
lib/ssh.c
@@
-628,6
+628,10
@@
static CURLcode ssh_statemach_act(struct connectdata *conn)
state(conn, SSH_AUTH_DONE);
}
else {
+ char *err_msg;
+ (void)libssh2_session_last_error(sshc->ssh_session,
+ &err_msg, NULL, 0);
+ infof(data, "SSH public key authentication failed: %s\n", err_msg);
state(conn, SSH_AUTH_PASS_INIT);
}
break;