Calculating an SSH key fingerprint

Feb 20, 2021 17:30 · 72 words · 1 minute read

After you have uploaded your SSH public key to websites like GitHub, they won’t show the complete key anymore - but instead show the key’s fingerprint. This is how you can calculate the fingerprint yourself (e.g. to compare them):

ssh-keygen -l -f <PATH_TO_KEY>

-l stands for “Show the fingerprint”, -f <filename> for specifiying a file.

This works with both the public as well as the private part of the key. 🔐