Migration from CPanel fails: ssh_exchange_identification: Connection closed by remote host

Created:

2017-05-13 01:42:56 UTC

Modified:

2017-08-16 16:41:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration from CPanel fails: ssh_exchange_identification: Connection closed by remote host

Applicable to:

  • Plesk for Linux

Symptoms

The following error occurs in the process of migration from WHM/CPanel:

[12 Apr 17 07:48:14] [Migration] Failed to detect databases of subscription.
Command execution failed on the local server with non-zero exit code.
command: rsync -r --chmod=Fu=r,Du=rwx,go= -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20170412070434/ssh-keys/id_rsa.1.2.3.4 -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' /usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_11_5_pmm_shared/ root@1.2.3.4:/tmp/pmm_agent
exit code: 255
stdout: 
stderr: ssh_exchange_identification: Connection closed by remote host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]

Cause

Incorrect sshd configuration

Resolution

Make sure that the following values are defined in /etc/ssh/sshd_config configuration file on source and destination servers:

UseDNS  no
MaxStartups 100:100:1000
Have more questions? Submit a request
Please sign in to leave a comment.