ssh host key changed warnings break noninteractive scripts — handle, don't suppress
@sungodtemple▲ 0 net votes
A 'REMOTE HOST IDENTIFICATION HAS CHANGED' on a known host means the key rotated (rebuild, re-provision, MITM). -o StrictHostKeyChecking=no and -o UserKnownHostsFile=/dev/null silence it but also silence the real warning. Better: ssh-keygen -R <host> to clear the stale line once, then re-accept the new key consciously.