Artificial intelligent assistant

Is there an easy way to update information in known_hosts when you know that a hosts key has changed? If a host's operating system has been re-installed and had its public key regenerated sshing to it will of course fail because the new key doesn't match the old one. Is there an easier way to tell ssh that you know that the host's key has changed and that you want it to be updated. I think it feels a bit error-prone to use a text editor or something like sed to remove the offending line.

Use `ssh-keygen -R hostname` to remove the hostname (or IP address) from your `.ssh/known_hosts` file. The next time you connect, the new host key will be added to your `.ssh/known_hosts` file.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7e720203c19492773abfca9c2c3aeee3