Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SHA-1 and SHA-256 SSH fingerprints #364

Closed
jpstotz opened this issue Sep 27, 2017 · 1 comment
Closed

Using SHA-1 and SHA-256 SSH fingerprints #364

jpstotz opened this issue Sep 27, 2017 · 1 comment

Comments

@jpstotz
Copy link
Contributor

jpstotz commented Sep 27, 2017

Modern Linux installations no longer provide MD5 SSH fingerprints by default.
Therefore I implemented some code for replacing calls like

sshClient.addHostKeyVerifier("4b:69:6c:72:6f:79:20:77:61:73:20:68:65:72:65:21");.

Using the helper class from the following GIST it is possible to write:

sshClient.addHostKeyVerifier(SSHFingerprintVerifier.getInstance("SHA1:<base64 encoded fingerprint>"));

SHA-256 and the old MD5 (no prefix, just the old hex notation) are supported as well.

@hierynomus
Copy link
Owner

Thanks for the Gist and issue, I've added this in PR #365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants