-
-
Save jonatasnona/1995061 to your computer and use it in GitHub Desktop.
SSH: print ssh public key's fingerprint
This file contains hidden or 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-keygen -l -f id_rsa.pub | |
2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 id_rsa.pub (RSA) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pub_key=id_rsa.pub
for hash in md5 sha256
do
ssh-keygen -E $hash -l -f $pub_key
done