1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

ssh-keyscan: add known_hosts example (#3980)

This commit is contained in:
Starbeamrainbowlabs 2020-05-02 02:05:41 +01:00 committed by GitHub
parent f93d709f61
commit b49de9b90e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`