Created
March 28, 2018 10:35
-
-
Save lgaticaq/44d890fe2df74e70eb49224d8db19097 to your computer and use it in GitHub Desktop.
Get ssh fingerprint in amazon format
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
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