Comment
My host provider migrated my system to a different host, and the IP changed. I have a Codeberg repo set up to push mirror on commit to the host. (Actual hostname replaced with example.org below.)
push failed: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:oV9BA0yBGsARD4JOD8DxQ4AlGBJtF0o0rsYHmE4chOo.
Please contact your system administrator.
Add correct host key in /home/git/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /home/git/.ssh/known_hosts:37
remove with:
ssh-keygen -f '/home/git/.ssh/known_hosts' -R 'example.org'
Host key for example.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:oV9BA0yBGsARD4JOD8DxQ4AlGBJtF0o0rsYHmE4chOo.
Please contact your system administrator.
Add correct host key in /home/git/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /home/git/.ssh/known_hosts:37
remove with:
ssh-keygen -f '/home/git/.ssh/known_hosts' -R 'example.org'
Host key for example.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:oV9BA0yBGsARD4JOD8DxQ4AlGBJtF0o0rsYHmE4chOo.
Please contact your system administrator.
Add correct host key in /home/git/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /home/git/.ssh/known_hosts:37
remove with:
ssh-keygen -f '/home/git/.ssh/known_hosts' -R 'example.org'
Host key for example.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I can't find any way to clear this. The manual "Synchronize Now" button doesn't do it. Removing and replacing the sync config doesn't help either.
I worked around the issue by using a different hostname that resolves to the same IP, but that's not really a great solution.