mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 00:48:29 +01:00
ssh-keygen: add commands to print the fingerprint
This commit is contained in:
parent
60bf61c82f
commit
5b2518b3fe
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue