Skip to content

Instantly share code, notes, and snippets.

@MyKEms
Last active April 26, 2021 06:57
Show Gist options
  • Save MyKEms/a3a018dd6e0ecb0902f17f1da65d7ee7 to your computer and use it in GitHub Desktop.
Save MyKEms/a3a018dd6e0ecb0902f17f1da65d7ee7 to your computer and use it in GitHub Desktop.
Calculate Public SSH Key fingerprint (GitHub)
# SHA256:
ssh-keygen -lf ~/.ssh/id_rsa.pub
# MD5:
ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub
# Calculate from known_hosts/authorized_keys:
find /etc/ssh /home/*/.ssh /Users/*/.ssh -name '*.pub' -o -name 'authorized_keys' -o -name 'known_hosts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment