diff --git a/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java b/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java index 8b55baa34cd..d720b2f3b5f 100644 --- a/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java +++ b/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java @@ -55,7 +55,7 @@ public String fingerprint(final InputStream in) throws BackgroundException { final String undelimited = ChecksumComputeFactory.get(HashAlgorithm.md5).compute(in, new TransferStatus()).hash; final StringBuilder fp = new StringBuilder(undelimited.substring(0, 2)); for(int i = 2; i <= undelimited.length() - 2; i += 2) { - fp.append(":").append(undelimited.substring(i, i + 2)); + fp.append(":").append(undelimited, i, i + 2); } return fp.toString(); }