diff options
author | Yang Tse <yangsita@gmail.com> | 2008-02-15 17:00:56 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-02-15 17:00:56 +0000 |
commit | dc42d6fb8d5b0faaf801160b7d6b4c927843e43c (patch) | |
tree | 6cba8444549e3952aa016de8b2557789e4adaefb /lib | |
parent | d2ad98d8c5a69217f0696f82c089683d55b6792b (diff) |
log SSH public key authentication failure and reason
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |