Skip to content

Instantly share code, notes, and snippets.

@lgaticaq
Created March 28, 2018 10:35
Show Gist options
  • Save lgaticaq/44d890fe2df74e70eb49224d8db19097 to your computer and use it in GitHub Desktop.
Save lgaticaq/44d890fe2df74e70eb49224d8db19097 to your computer and use it in GitHub Desktop.
Get ssh fingerprint in amazon format
SSH_PUBLIC_KEY_PATH=~/.ssh/id_rsa.pub
openssl rsa -RSAPublicKey_in -in <(ssh-keygen -f $SSH_PUBLIC_KEY_PATH -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