[SOLVED] Can't connect to destination address using public key

aarb000

Renowned Member
Feb 15, 2016
16
0
66
I am trying to migrate a VM from node 2 to node 1and get the message in the title. I believe that the problem might be that on node 2, my root users .ssh folder has no id_rsa private or public key.

I also am getting the same error when I try to migrate a VM from node 1 to node 2. My root user on node 1 has both an id_rsa private and public key.

I can ssh from node 2 to node 1, and I can also ssh from node 1 to node 2.

Background on my cluster. I installed a cluster on node 1, then added node 2. I migrated everything from node 1 to node 2 because I wanted to expand the hard drive storage on node 1. I powered off node 1 and then went to delete node 1 from node 2. When I did a pvecm nodes, node 1 wasn't in the list.

I re-installed node 1 with the larger disks and gave it the same name and ip as before. I did a pvecm -force and the cluster looked correct on both node 1 and node 2 when doing pvecm status. The web GUI had both servers in green, and both nodes could see the shared storage.

I wanted to migrate some of my servers back from node 2 to node 1 and I got the error in the title. Searching the forum and finding similar posts, I was going to delete known hosts and .authorized_keys and try again. I accidentally delete the /root/.ssh folder.

How can I get my keys back on node 2 and get migration working again? Is my cluster messed up because I was unable to delete node 1?

I am running version 4.2.
 
I performed a pvecm updatecerts on node 2 and it put a public and private key in my roots .ssh directory. Migration now works.