mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-24 20:52:14 +00:00
Update cheatsheets
This commit is contained in:
25
ssh-keyscan
Normal file
25
ssh-keyscan
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ssh-keyscan
|
||||
|
||||
> Get the public ssh keys of remote hosts.
|
||||
> More information: <https://man.openbsd.org/ssh-keyscan>.
|
||||
|
||||
- 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}}`
|
||||
|
||||
- Manually update the ssh known_hosts file with the fingerprint of a given host:
|
||||
|
||||
`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts`
|
||||
Reference in New Issue
Block a user