OpenVZ Forum


Home » General » Support » vzmigrate failing with 'Can not create connection to...'
Re: vzmigrate failing with 'Can not create connection to...' [message #53571 is a reply to message #53355] Fri, 13 September 2019 18:13 Go to previous message
mkandoll is currently offline  mkandoll
Messages: 2
Registered: January 2018
Junior Member
I ran into this issue and after a while found what the problem was in my case. In my case vzmigrate hardcoded an unsupported cipher, arcfour. The solution was to specify a supported cipher in the ssh options passed to vzmigrate.

[root@server vz]# vzmigrate -vv -f --ssh="-i /root/.ssh/ssh-key" --online --dry-run server2.hostname.com 9579055
1568397905: ssh -T -q -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key server2.hostname.com true
1568397905: ssh exited with code 255
1568397905: ssh wait daemon exited with code 1
1568397905: vzsock_open() return 1

1568397905: Can not create connection to server2.hostname.com
You have mail in /var/spool/mail/root
[root@server vz]# ssh -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key server2.hostname.com true
no matching cipher found: client arcfour server aes256-ctr,aes192-ctr,aes128-ctr
[root@server vz]# ssh -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key -c aes256-ctr server2.hostname.com true
Warning: Permanently added 'server2.hostname.com' (RSA) to the list of known hosts.
[root@server vz]# echo $?
0
[root@server vz]# vzmigrate -vv -f --ssh="-i /root/.ssh/ssh-key -c aes256-ctr" --online --dry-run server2.hostname.com 9579055
1568397975: ssh -T -q -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key -c aes256-ctr server2.hostname.comtrue
1568397975: ssh -T -q -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key -c aes256-ctr server2.hostname.com /usr/sbin/vzmdest 470 -v --online '9579055:9579055'
1568397976: remote_version 470
1568397976: Connection to destination node (server2.hostname.com) is successfully established
 
Read Message
Read Message
Previous Topic: Error while starting the container - Failed to exec quotaon
Next Topic: [OpenVZ 7] KVM KSM Support?
Goto Forum:
  


Current Time: Tue Nov 05 23:48:58 GMT 2024

Total time taken to generate the page: 0.03587 seconds