-
-
Save yosemitebandit/1994947 to your computer and use it in GitHub Desktop.
$ 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) |
ah cd ~/.ssh
yup, it'll probably be ~/.ssh
edited the gist to be a little more clear.
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)
"no such file or directory" error. What directory should I be in?