Selaa lähdekoodia

Adds command to show SSH key fingerprint (#935)

Adds an ssh-keygen command to show the fingerprint of an SSH key in the
same format that is used by Github to list SSH keys that it knows about.
Rob Young 8 vuotta sitten
vanhempi
commit
44527a82a8
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      pages/common/ssh-keygen.md

+ 4 - 0
pages/common/ssh-keygen.md

@@ -22,6 +22,10 @@
 
 `ssh-keygen -l -F {{remote_host}}`
 
+- Retrieve the fingerprint of a key in MD5 Hex:
+
+`ssh-keygen -l -E md5 -f ~/.ssh/{{filename}}`
+
 - Change the password of a key:
 
 `ssh-keygen -p -f ~/.ssh/{{filename}}`