Created
September 29, 2016 08:11
-
-
Save jcberthon/d1e5c2f77fb605c10e1f2829a890a4a1 to your computer and use it in GitHub Desktop.
Print a known host public key fingerprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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