How to get rid of "remote host key identification changed" for good

Published: 一 27 九月 2021
By jlz

In linux.

First of all, this is violating security rules, but anyway, you can do it.

Modify ~/.ssh/config like this:

Host raspberrypi
        HostName localhost
        UserKnownHostsFile=/dev/null
        StrictHostKeyChecking=no

When experimenting with vms and if you are destroying and re-build vms frequently, you might see this warning messages a lot, so, it might be helpful someday.

I found it here

links

social