Unable to start migration: Permission denied (publickey,password), connection unexpectedly closed

Created:

2017-05-20 12:14:19 UTC

Modified:

2017-08-08 13:15:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start migration: Permission denied (publickey,password), connection unexpectedly closed

Symptoms

Migration fails with the following error:

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= -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20170514224351/ssh-keys/id_rsa.203.0.113.2 -p 2828 -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@203.0.113.2:/var/migration/plesk_migrator-2sugyp3lawuamu6q36dfsxsnp25hezka/pmm_agent
exit code: 255
stdout:
stderr: Permission denied (publickey,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] That is a critical error, migration was stopped.

Cause

Public keys are missing on the source server, or a public key on the source and target server is not compatible.

Resolution

  1. Create the RSA Key Pair on a target server:

    # ssh-keygen -t rsa -b 2048

    Permissions for the private key should be 0600

  2. Copy the public key from target to source server over ssh protocol:

    # ssh-copy-id user@203.0.113.2
Have more questions? Submit a request
Please sign in to leave a comment.