mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
log SSH public key authentication failure and reason
This commit is contained in:
parent
d2ad98d8c5
commit
dc42d6fb8d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user