Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Print a known host public key fingerprint
# The examples below are given with the hostname
# 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
# To choose the algorithm for displaying the fingerprint (valid option for OpenSSH 7.2 are: `md5` or `sha256`)
ssh-keygen -l -E sha256 -F
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.