Currently I am using Paramiko (in Python) to execute remote command on a node. At times, remote nodes change theirs public key, and consequently Paramiko fails as fingerprints do not match. Is there a way to update the keys in known_hosts
file when they change? If this is not possible is there any other way to ignore the warning thrown?
Currently I have a hacky solution where known_hosts
file is deleted before making the call which is not good.