Skip to content

Instantly share code, notes, and snippets.

@bitdivine
Created March 14, 2017 05:20
Show Gist options
  • Save bitdivine/755415779c0d067b86d16eb719e81690 to your computer and use it in GitHub Desktop.
Save bitdivine/755415779c0d067b86d16eb719e81690 to your computer and use it in GitHub Desktop.
Get the AWS ssh key fingerprint from a public key
openssl rsa -RSAPublicKey_in -in <(ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PEM) -inform PEM -outform DER 2>/dev/null | openssl md5 -c | awk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment