Skip to content

Commit

Permalink
Always add agents to the authentication methods.
Browse files Browse the repository at this point in the history
Former-commit-id: 7d23f4b8636f16e109a54d0cb4b71f85e5ee9b56
  • Loading branch information
ylangisc committed Dec 23, 2016
1 parent 93df404 commit a7cd0ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java
Expand Up @@ -229,16 +229,16 @@ public void login(final HostPasswordStore keychain, final LoginCallback prompt,
methods.add(new SFTPNoneAuthentication(this));
}
else {
if(preferences.getBoolean("ssh.authentication.agent.enable")) {
methods.add(new SFTPAgentAuthentication(this, new OpenSSHAgentAuthenticator()));
methods.add(new SFTPAgentAuthentication(this, new PageantAuthenticator()));
}
if(credentials.isPublicKeyAuthentication()) {
methods.add(new SFTPPublicKeyAuthentication(this, keychain));
}
else {
methods.add(new SFTPChallengeResponseAuthentication(this));
methods.add(new SFTPPasswordAuthentication(this));
if(preferences.getBoolean("ssh.authentication.agent.enable")) {
methods.add(new SFTPAgentAuthentication(this, new OpenSSHAgentAuthenticator()));
methods.add(new SFTPAgentAuthentication(this, new PageantAuthenticator()));
}
}
}
if(log.isDebugEnabled()) {
Expand Down

0 comments on commit a7cd0ba

Please sign in to comment.