Specify accepted host key algorithms explicitly.
Section: Authentication
Override host key algorithms
bash
bash
ssh -o HostKeyAlgorithms=ssh-ed25519 user@example.comExplanation
Specify accepted host key algorithms explicitly.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Authentication
Accept new host keys automatically
Accept first-seen host keys but still protect against changed keys.
Override accepted pubkey algorithms
Specify accepted client public key algorithms.
Restrict preferred auth methods
Control which auth methods the client attempts first.