Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Print a known host public key fingerprint
# The examples below are given with the hostname github.com.
# Just change the hostname to one of your known hosts.
# These commands are particularly usefull if your ~/.ssh/known_hosts file is
# hashed!
# To display the fingerprint in its default form
ssh-keygen -l -F github.com
# To choose the algorithm for displaying the fingerprint (valid option for OpenSSH 7.2 are: `md5` or `sha256`)
ssh-keygen -l -E sha256 -F github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.