Created
March 7, 2012 18:27
-
-
Save yosemitebandit/1994947 to your computer and use it in GitHub Desktop.
view your ssh public key's fingerprint; compare this to what Github has listed in the ssh key audit
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 /path/to/keys/id_rsa.pub | |
2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 id_rsa.pub (RSA) |
ssh-keygen -lv # displays pretty ASCIIart
ssh-keygen -B # displays easy to memorize gobbledigook
thank you!
wish github had this instruction on the verify ssh keys page (https://github.com/settings/ssh)
@sujee e.g.
ssh-keygen -l -f ~/.ssh/id_rsa.pub
nice one +1
With newer versions of ssh
ssh-keygen -l -E md5 -f ~/.ssh/my-github-key.pub
Thanks @jamesp9
π @jamesp9
π @jamesp9
If you are using something like a Yubikey, where there isn't necessarily a file to check, the ssh-add
command takes an argument to change the fingerprint algorithm.
This outputs fingerprints in the format that GitHub displays:
ssh-add -l -E md5
thanks @jamesp9
On MacOS I used the following to get the fingerprint as shown in github
> ssh-keygen -l -E md5 -f id_ed25519.pub β
256 MD5:cf:d6:c5:8a:69:30:29:99:19:b9:77:7b:d5:60:83:8b m0freak (ED25519)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yup, it'll probably be ~/.ssh
edited the gist to be a little more clear.