[Development] Getting "REMOTE HOST IDENTIFICATION HAS CHANGED" when pushing a commit to gerrit
Fusion Future
qydwhotmail at gmail.com
Thu Nov 10 16:29:56 CET 2022
Hi Qt people,
I am getting this error "REMOTE HOST IDENTIFICATION HAS CHANGED" when
trying to push a commit to Qt gerrit. Not sure what happened, is my
network in danger?
```
> git push gerrit HEAD:refs/for/dev
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
SHA256:EPuL0PAbNuXXoye7X93ARF7/XALxA5XNAaE3p6M/L3g.
Please contact your system administrator.
Add correct host key in /home/qydw/.ssh/known_hosts to get rid of this
message.
Offending RSA key in /home/qydw/.ssh/known_hosts:32
You can use following command to remove the offending key:
ssh-keygen -R [codereview.qt-project.org]:29418 -f
/home/qydw/.ssh/known_hosts
Host key for [codereview.qt-project.org]:29418 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.
```
And the line at /home/qydw/.ssh/known_hosts:32 is
```
[codereview.qt-project.org]:29418 ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgQCvXdApmCFiAyXDiYU5+z6762Qv8+vrmM3+9YrxDKByyphaxblLJC9txPv3D/w7rzSyiMMHL/5ssCemwz+6QBqnemFl4B+FNv81fpZFsqCg5afrTi62WFllGWIQAiYb2JZmkmSAbxm+sAxLE1ritp+Syxz8Gb8WR27G/3TSHerdBQ==
```
More information about the Development
mailing list