From bf6cb9cf9b5fb9546acc7aa89a2b20f8c87361b9 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Mon, 14 Feb 2022 13:47:05 +0100 Subject: [PATCH] Fix #12880. Enable authentication using OpenSSH agent on Windows. --- ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java b/ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java index 5f9dd58aa49..0462ca1abeb 100644 --- a/ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java +++ b/ssh/src/main/java/ch/cyberduck/core/sftp/SFTPSession.java @@ -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; } }