Skip to content

Instantly share code, notes, and snippets.

@lukejjh
Created July 5, 2021 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukejjh/4cf9698948e0d0727de3bf42a8145a7f to your computer and use it in GitHub Desktop.
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.
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