Skip to content

Instantly share code, notes, and snippets.

@jcberthon
Created September 29, 2016 08:11
Show Gist options
  • Save jcberthon/d1e5c2f77fb605c10e1f2829a890a4a1 to your computer and use it in GitHub Desktop.
Save jcberthon/d1e5c2f77fb605c10e1f2829a890a4a1 to your computer and use it in GitHub Desktop.
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