mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-20 21:08:35 +01:00
[libssh] auth: If the agent fails, fall back to regular path
It's causing issues on MacOSX when ssh_agent_get_ident_count() reports "Agent count: 0".
This commit is contained in:
parent
8f19552af0
commit
7316ed33e1
@ -1109,7 +1109,7 @@ int ssh_userauth_publickey_auto(ssh_session session,
|
||||
#ifndef _WIN32
|
||||
/* Try authentication with ssh-agent first */
|
||||
rc = ssh_userauth_agent(session, username);
|
||||
if (rc == SSH_AUTH_ERROR || rc == SSH_AUTH_SUCCESS) {
|
||||
if (rc == SSH_AUTH_SUCCESS) {
|
||||
return rc;
|
||||
}
|
||||
if (rc == SSH_AUTH_AGAIN)
|
||||
|
Loading…
Reference in New Issue
Block a user