-
-
Save jonatasnona/1995061 to your computer and use it in GitHub Desktop.
SSH: print ssh public key's fingerprint
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-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) |
For time travelers with new ssh-keygen binary: If you want to get the old format fingerprint, run this
ssh-keygen -E md5 -l -f your_public_key.pub
pub_key=id_rsa.pub
for hash in md5 sha256
do
ssh-keygen -E $hash -l -f $pub_key
done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about its sha256?
ssh-keygen -E sha256 -l -f /var/ssh/ssh_host_rsa_key.pub