Migration failed due to

chris_lee

Active Member
Dec 18, 2012
38
2
28
When trying to migrate a VM to another node I get the error, that migration fail because of a RSA mismatch.
I can ssh from the original node to the destination node without any problems.

Any idea, how to fix the problem?


Code:
2017-12-14 18:33:02 # /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=node4' root@**** /bin/true
2017-12-14 18:33:02 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2017-12-14 18:33:02 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
2017-12-14 18:33:02 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2017-12-14 18:33:02 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
2017-12-14 18:33:02 Someone could be eavesdropping on you right now (man-in-the-middle attack)!
2017-12-14 18:33:02 It is also possible that a host key has just been changed.
2017-12-14 18:33:02 The fingerprint for the RSA key sent by the remote host is
2017-12-14 18:33:02 SHA256:7KbzR/wwnvn+6X7mAHVx5O+0JGrlzrlrvqI73d8URsc.
2017-12-14 18:33:02 Please contact your system administrator.
2017-12-14 18:33:02 Add correct host key in /root/.ssh/known_hosts to get rid of this message.
2017-12-14 18:33:02 Offending RSA key in /etc/ssh/ssh_known_hosts:5
2017-12-14 18:33:02   remove with:
2017-12-14 18:33:02   ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R node4
2017-12-14 18:33:02 RSA host key for node4 has changed and you have requested strict checking.
2017-12-14 18:33:02 Host key verification failed.
2017-12-14 18:33:02 ERROR: migration aborted (duration 00:00:00): Can't connect to destination address using public key
 
Looks not that great but all information about your problem is in your post (in the code area).
 
I know what the problem is, I am looking for a solution ;-)

The correct id_rsa.pub is within the authorized keys of the other nodes. SSH-ing to the machine does not throw this error. So I am confused.
 
Problem solved. You have to copy the public key from /etc/ssh/ssh_host_rsa.pub to the /etc/ssh/ssh_known_hosts file of the other nodes.