1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:02:09 +02:00
tldr/pages/common/ssh-keyscan.md
Valentin Vetter 763c0aeae5 ssh-keyscan: reformat arguments
Co-Authored-By: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2019-09-08 20:41:19 +05:30

15 lines
363 B
Markdown

# ssh-keyscan
> Get the public ssh keys of remote hosts.
- Retrieve all public ssh keys of a remote host:
`ssh-keyscan {{host}}`
- Retrieve all public ssh keys of a remote host listening on a specific port:
`ssh-keyscan -p {{port}} {{host}}`
- Retrieve certain types of public ssh keys of a remote host:
`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}`