Symptoms
-
Unable to migrate a domain:
stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(605) [Receiver=3.0.9]
stderr: Permission denied (publickey,password,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.2] -
The following error can be found in pre-migration checks:
The option "AllowUsers" is used in /etc/ssh/sshd_config on the source server 'directadmin'
Plesk Migrator creates temporary users on the source server to copy web content in a secure way.
These users have name starting from "plesk-migrator" and they must have ability to login to the source by SSH.
To allow these users to login by SSH, fix "Allow users" option so it looks like:
AllowUsers root plesk-migrator-*
Cause
Misconfigured sshd service.
Resolution
-
Log into the source server via SSH .
-
Add plesk-migrator-* to AllowUsers in
/etc/ssh/sshd_config
file: open the file in any text editor and insert the following line in it:AllowUsers root plesk-migrator-*
-
Restart SSH service:
# service sshd restart