Can I automatically add a new host to known_hosts?

Set the StrictHostKeyChecking option to no, either in the config file or via -o :

ssh -o StrictHostKeyChecking=no [email protected]

Leave a Comment