Skip to content

Commit

Permalink
Fix #12880. Enable authentication using OpenSSH agent on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Feb 14, 2022
1 parent 1e19a31 commit bf6cb9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,10 @@ private void authenticate(final SSHClient client, final Host host, final LoginCa
switch(Factory.Platform.getDefault()) {
case windows:
defaultMethods.add(new SFTPAgentAuthentication(client, new PageantAuthenticator()));
break;
// Break through
default:
defaultMethods.add(new SFTPAgentAuthentication(client, new OpenSSHAgentAuthenticator(
new OpenSSHIdentityAgentConfigurator().getIdentityAgent(host.getHostname())
)));
new OpenSSHIdentityAgentConfigurator().getIdentityAgent(host.getHostname()))));
break;
}
}
Expand Down

0 comments on commit bf6cb9c

Please sign in to comment.