Skip to content

Commit 8d36812

Browse files
authored
Merge pull request #17610 from iterate-ch/bugfix/MD-25631
Skip authentication attempt for unknown key file such as .pub
2 parents e7872b3 + a79223d commit 8d36812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh/src/main/java/ch/cyberduck/core/sftp/auth/SFTPPublicKeyAuthentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Boolean authenticate(final Host bookmark, final LoginCallback prompt, fin
107107
break;
108108
default:
109109
log.warn("Unknown key format for file {}", privKey.getName());
110-
throw new LoginFailureException(String.format("Unknown key format for file %s", privKey.getName()));
110+
return false;
111111
}
112112
provider.init(new InputStreamReader(privKey.getInputStream(), StandardCharsets.UTF_8),
113113
pubKey != null ? new InputStreamReader(pubKey.getInputStream(), StandardCharsets.UTF_8) : null,

0 commit comments

Comments
 (0)