Applicable to:
- Plesk for Linux
Symptoms
-
Plesk migration fails with the following error message in Plesk:
PLESK_ERROR: Failed to fetch basic information about resellers, clients and domains data from source servers
<...>
stderr: Permission denied (publickey,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9] -
One of the following error messages appears in the logfile
/var/log/secure
(CentOS/RHEL) or/var/log/auth.log
(Debian/Ubuntu) on the source server:CONFIG_TEXT: Authentication refused: bad ownership or modes for directory /root
CONFIG_TEXT: Authentication refused: bad ownership or modes for directory /root/.ssh
CONFIG_TEXT: Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys
Cause
Wrong permissions on the directories /root
or /root/.ssh
or files inside /root/.ssh
.
Resolution
-
Connect to the source server via SSH.
-
Run the commands below to correct permissions:
-
on the
/root
directory:# chmod 550 /root
# chown root:root /root -
on the
/root/.ssh
directory:# chown -R root:root /root/.ssh
# chmod 600 /root/.ssh -
on the files inside
/root/.ssh
:# chmod 644 /root/.ssh/*
-
Comments
4 comments
thanks, that was the issue
Does not work, starting migration on ubuntu22 to old ubuntu14 host still fails!
(Direct login with ssh works)
Failed to fetch basic information about resellers, clients and domains data from source servers
Cause: Command execution failed on the local server with non-zero exit code.
command: rsync -r --chmod=Fu=r,Du=rwx,go= --timeout=30 -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20220914173656/ssh-keys/id_rsa.XXX.XXX.XXX.XXX -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_17_0_pmm_shared/ root@XXX.XXX.XXX.XXX:/root/plesk_migrator/plesk_migrator-9sfrgaycf6qd06uhzgmcvdxpufr7k9x4/pmm_agent
exit code: 255
stdout:
stderr: root@XXX.XXX.XXX.XXX: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]
Same here. We solved the problem by directly connecting the servers via ECDSA 256bit key: https://docs.plesk.com/en-US/onyx/migration-guide/migrating-from-supported-hosting-platfoms/authentication-by-ssh-linux.77996/
Generate the key with
Hi Christoph Fritz!
There are other KB articles that address the same error message. Please check them out:
Please sign in to leave a comment.