aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-21 15:54:49 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-21 15:54:49 +0200
commit88f4e9ea24257bfdce511272a65a8d0f7eab8b35 (patch)
tree2cb02dfee365e760a87b4d77a6d926f7c87fd816 /libssh/auth.c
parent4133f484ae317909169ad8e1bc689d25cabd9a77 (diff)
downloadlibssh-88f4e9ea24257bfdce511272a65a8d0f7eab8b35.tar.gz
libssh-88f4e9ea24257bfdce511272a65a8d0f7eab8b35.tar.xz
libssh-88f4e9ea24257bfdce511272a65a8d0f7eab8b35.zip
Added more logging output for publickey auth.
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index 8a3e597e..1aa2b8c9 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -929,11 +929,12 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) {
}
string_free(pubkey);
SAFE_FREE(privkeyfile);
+ ssh_log(session, SSH_LOG_RARE, "Publickey authentication error");
leave_function();
return rc;
} else {
if (rc != SSH_AUTH_SUCCESS){
- ssh_log(session, SSH_LOG_RARE, "Public key refused by server");
+ ssh_log(session, SSH_LOG_RARE, "Publickey refused by server");
string_free(pubkey);
pubkey = NULL;
SAFE_FREE(privkeyfile);
@@ -943,6 +944,7 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) {
}
/* Public key accepted by server! */
+ ssh_log(session, SSH_LOG_RARE, "Trying to read privatekey %s", privkeyfile);
privkey = privatekey_from_file(session, privkeyfile, type, passphrase);
if (privkey == NULL) {
ssh_log(session, SSH_LOG_FUNCTIONS,