ssh-keyscan

Collect SSH host keys

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Fetches public host keys for known_hosts.

Examples
ssh-keyscan -t ed25519 host >> ~/.ssh/known_hostsAdd a host key · explain & risk-check →
Related
ssh ssh-keygen
Open the full explainer →More in Users, Permissions & Security

Reference text is hand-written and may be incomplete — check man ssh-keyscan for your version. Test destructive commands on a non-production system first.