Wednesday, March 7, 2012

GitHub and SSH keys

GitHub is requiring people to re-approve their SSH keys but don't provide any context about how to verify your SSH public keys should match their hex digests.    You can check here to derive the SSH fingerprint:

http://stackoverflow.com/questions/6682815/deriving-an-ssh-fingerprint-from-a-public-key-in-python


If you want to check manually, here's another approach (courtesy of Sean Conaty writing this stuff up):

> cat ~/.ssh/id_rsa.pub

copy everything after the "ssh-rsa " through and including the "=="

> python

>> import base64
>> import md5
>> decoded = base64.b64decode(key_goes_here) 
>> md5.md5(decoded).hexdigest()

No comments:

Post a Comment