Created
July 5, 2021 02:48
-
-
Save lukejjh/4cf9698948e0d0727de3bf42a8145a7f to your computer and use it in GitHub Desktop.
Get all SSH server fingerprints, both in SHA256 and MD5, on Linux using Bash.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for h in {sha256,md5}; do for f in /etc/ssh/ssh_host_*_key.pub; do ssh-keygen -lf $f -E $h; done; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment