ssh-keyscan -t ed25519 203.0.113.10 >> ~/.ssh/known_hosts

Category: VPS Management

ssh-keyscan -t ed25519 203.0.113.10 >> ~/.ssh/known_hosts

Pre-record a host key into known_hosts

ssh-keyscan fetches the server's public host keys and appends them to known_hosts, pre-answering the first-connection trust prompt — handy in provisioning scripts that run non-interactively. The -t ed25519 flag limits the scan to that key type. Since it trusts without verification, compare the key against your provider's console fingerprint.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.