diff options
-rw-r--r-- | libssh/auth.c | 3 | ||||
-rw-r--r-- | libssh/connect.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index c79d164..171f4b7 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -838,7 +838,8 @@ int ssh_userauth_autopubkey(ssh_session session, const char *passphrase) { #ifndef _WIN32 if (agent_is_running(session)) { ssh_log(session, SSH_LOG_RARE, - "Trying to authenticate with SSH agent keys"); + "Trying to authenticate with SSH agent keys as user: %s", + session->username); for (publickey = agent_get_first_ident(session, &privkeyfile); publickey != NULL; diff --git a/libssh/connect.c b/libssh/connect.c index 977dfac..63aa7cf 100644 --- a/libssh/connect.c +++ b/libssh/connect.c @@ -214,6 +214,9 @@ static int ssh_connect_ai_timeout(ssh_session session, const char *host, sock_set_nonblocking(s); + ssh_log(session, SSH_LOG_RARE, "Trying to connect to host: %s:%d with " + "timeout %ld.%ld", host, port, timeout, usec); + /* The return value is checked later */ connect(s, ai->ai_addr, ai->ai_addrlen); freeaddrinfo(ai); |