Read more

Find out your SSH key's fingerprint (e.g. to authenticate on GitHub)

Arne Hartherz
March 07, 2012Software engineer at makandra GmbH

If you want to know your public key's fingerprint, do this:

ssh-keygen -lf ~/.ssh/my.key.pub
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This may be necessary to authenticate your key on GitHub because of recent events Show archive.org snapshot -- you need to do that if you get an error like this when talking to them (to pull etc):

ERROR: Hi foobear, it's GitHub. We're doing an SSH key audit.
Please visit https://github.com/settings/ssh/audit/...
to approve this key so we know it's safe.
Fingerprint: ab:cd:ef:...
fatal: The remote end hung up unexpectedly

This may be obvious, but: only authenticate keys on GitHub that are actually yours.

GitHub's message already provides you with the fingerprint but you want to compare it against actual key file, just to be safe.

Posted by Arne Hartherz to makandra dev (2012-03-07 20:05)