Remote Host Identification Has Changed

abranca

Well-Known Member
Mar 6, 2017
47
5
48
37
hello everyone, i have a cluster with 3 nodes (kve-kve2-kve3) and today i noticed, during a migration, that kve2 cannot migrate to kve.

Code:
2022-02-28 16:06:14 # /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=kve' root@192.168.1.6 /bin/true
2022-02-28 16:06:14 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2022-02-28 16:06:14 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
2022-02-28 16:06:14 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2022-02-28 16:06:14 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
2022-02-28 16:06:14 Someone could be eavesdropping on you right now (man-in-the-middle attack)!
2022-02-28 16:06:14 It is also possible that a host key has just been changed.
2022-02-28 16:06:14 The fingerprint for the RSA key sent by the remote host is
2022-02-28 16:06:14 SHA256:nna6ovzrJjz3cMiQcvnXT2vpc/eERN4HGhdFHxOGG5c.
2022-02-28 16:06:14 Please contact your system administrator.
2022-02-28 16:06:14 Add correct host key in /root/.ssh/known_hosts to get rid of this message.
2022-02-28 16:06:14 Offending RSA key in /etc/ssh/ssh_known_hosts:1
2022-02-28 16:06:14   remove with:
2022-02-28 16:06:14   ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R "kve"
2022-02-28 16:06:14 RSA host key for kve has changed and you have requested strict checking.
2022-02-28 16:06:14 Host key verification failed.
2022-02-28 16:06:14 ERROR: migration aborted (duration 00:00:00): Can't connect to destination address using public key
TASK ERROR: migration aborted

following the posts present i have already tried to update the certificates with
Code:
pvecm updatecerts -f
but i always get the same warning.

i also tried to remove the key as indicated in the error but nothing to do.
i can connect kve2 to kve via ssh with ip address, but not with name.

have any other suggestions?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!