When starting a migration from WHM/cPanel, the operation fails with:
[Migration] Failed to detect databases of subscription.
stderr: ssh_exchange_identification: Connection closed by remote host
An SSH connection from Plesk server to WHM/cPanel server is successful:
SSHD configuration is not adjusted on the WHM/cPanel server.
Connect to the WHM/cPanel server via SSH.
Open the file
/etc/ssh/sshd_configfile in a text editor. In this example, we are using the vi editor:
# vi /etc/ssh/sshd_config
Make sure these settings do not have a # (hash) character at the beginning of the line and values are the same:
Save the changes and close the file.
Restart the SSH service:
# service sshd reload