Forráskód Böngészése

ssh-keyscan: add known_hosts example (#3980)

Starbeamrainbowlabs 4 éve
szülő
commit
b49de9b90e
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      pages/common/ssh-keyscan.md

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

@@ -13,3 +13,7 @@
 - Retrieve certain types of public ssh keys of a remote host:
 
 `ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}`
+
+- Manually update the ssh known_hosts file with the fingerprint of a given host:
+
+`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts`