Merge pull request #471 from thezeroalpha/master

ssh-keygen: add commands to print the fingerprint
This commit is contained in:
Chris Allen Lane 2019-10-16 06:09:44 -04:00 committed by GitHub
commit 1333703a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,3 +12,9 @@ ssh-keygen -p -P old_passphrase -N '' -f /path/to/keyfile
# To generate a 4096 bit RSA key with a passphase and comment containing the user and hostname
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME" -P passphrase
# To print the fingerprint of a public key
ssh-keygen -lf /path/to/keyfile
# To print the Github-style (MD5) fingerprint of a public key
ssh-keygen -E md5 -lf /path/to/keyfile