Skip to content

Instantly share code, notes, and snippets.

@epreston
Last active June 30, 2021 11:40
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 epreston/4b3fea5021118867956f1528795c356b to your computer and use it in GitHub Desktop.
Save epreston/4b3fea5021118867956f1528795c356b to your computer and use it in GitHub Desktop.
quick display of ssh keys - length, sha, note, type
# Display info on existing SSH keys
for key in ~/.ssh/*.pub; do ssh-keygen -l -f "${key}"; done | uniq
# DSA = Unsafe and even no longer supported since OpenSSH version 7.
# RSA = Concerning, see length. 3072 or 4096-bit length is ok.
# ECDSA = Trustworthiness concern on the NIST curves.
# Ed25519 = Recommended public-key algorithm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment