SSH key issue - WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

rebootnz

Member
Nov 27, 2022
9
4
8
Hi, Just built a new Cluster and have 4 guests on it.
each host has the same network.
Lan(VlanA) as well as storage(Vlanx)


But when I try to migrate a guest i get the following error

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


Help? Or do i need to rebuild, which i rather NOT.
 
Sounds line a ip or host name mismatch. is pve02 really 192.168.4.1? Has the ip or hostname used before in a different setup?
 
host is on .12 not .1 .1 is the gateway.
1761810208514.png
192.168.1.11 is the management / lan
192.168.4.11 is the Storage
 
Last edited:
2025-10-30 17:02:54 # /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve02' -o 'UserKnownHostsFile=/etc/pve/nodes/pve02/ssh_known_hosts' -o 'GlobalKnownHostsFile=none' root@192.168.4.1 /bin/true
If the quote is accurate you're connecting as root to .4.1 which is probably a router (your gateway) accessible by ssh.
This is probably not what you want. Looks like a typo in the configuration.