Bitbucket Pipelines: Fixing 'The ECDSA host key has changed'

1 · Christian Specht · April 7, 2021, 10:30 p.m.
I recently pushed to a Bitbucket repository and expected Bitbucket Pipelines to deploy the site via SSH/rsync to my webserver. But rsync failed with this wall of text: (the project is private, so I have redacted a few details) + rsync -rSlh --stats buildtar/ $user_host:$webpath/myproject @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for mydomain...