Accept first-seen host keys but still protect against changed keys.
Section: Authentication
Accept new host keys automatically
bash
bash
ssh -o StrictHostKeyChecking=accept-new user@example.comExplanation
Accept first-seen host keys but still protect against changed keys.
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
Override host key algorithms
Specify accepted host key algorithms explicitly.
Restrict preferred auth methods
Control which auth methods the client attempts first.