1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 18:15:24 +02:00

ssh-keyscan: clarify placeholder (#16752)

This commit is contained in:
Managor 2025-06-04 20:02:46 +03:00 committed by GitHub
parent 013d823516
commit 39ee15df80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,16 +5,16 @@
- Retrieve all public SSH keys of a remote host:
`ssh-keyscan {{host}}`
`ssh-keyscan {{hostname}}`
- Retrieve all public SSH keys of a remote host listening on a specific port:
`ssh-keyscan -p {{port}} {{host}}`
`ssh-keyscan -p {{port}} {{hostname}}`
- Retrieve certain types of public SSH keys of a remote host:
`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}`
`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{hostname}}`
- Manually update the SSH known_hosts file with the fingerprint of a given host:
`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts`
`ssh-keyscan -H {{hostname}} >> ~/.ssh/known_hosts`