Fastest way to reset a host key when rebuilding servers on the same IP or hostname frequently
I build and rebuild servers quite often, and when I want to jump into the server to check a config setting (when I'm not using Ansible, that is...), I need to log in via SSH. It's best practice to let SSH verify the host key every time you connect to make sure you're not getting MITMed or anything else is going on.
However, any time you rebuild a server from a new image/OS install, the host key should be new, and this will result in the following message the next time you try to log in: