Last active
June 30, 2021 11:40
-
-
Save epreston/4b3fea5021118867956f1528795c356b to your computer and use it in GitHub Desktop.
quick display of ssh keys - length, sha, note, type
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
# 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