Unable to start a migration: Permission denied (publickey,password).

Created:

2017-04-21 23:37:04 UTC

Modified:

2017-08-16 14:10:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start a migration: Permission denied (publickey,password).

Applicable to:

  • Plesk for Linux

Symptoms

Unable to start a migration.

  • The following error message is shown in Plesk Migrator:
    Failed to check that all required components are installed on source Plesk
    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/20170422134426/ssh-keys/id_rsa.203.0.113.2 -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_12_5_pmm_shared/ root@203.0.113.2:/root/plesk_migrator/plesk_migrator-5e6lcbrmc6lcpd81on8iidsrh80zjoxl/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(600) [sender=3.0.6]

    That is a critical error, migration was stopped.
  • Migration via CLI returns the following output:
    [2017-04-22 17:37:45][INFO] Deploy migration agent to '203.0.113.2'
    [2017-04-22 17:37:46][ERROR] Failed to check that all required components are installed on source Plesk
    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/migration-session/ssh-keys/id_rsa.203.0.113.2 -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_12_5_pmm_shared/ root@203.0.113.2:/root/plesk_migrator/plesk_migrator-pwr0698nfb6orh05zg9xlztqwig73ejj/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(600) [sender=3.0.6]

    That is a critical error, migration was stopped.
  • SELinux is enabled in enforcing mode on a source server:
    # sestatus
    SELinux status: enabled
    SELinuxfs mount: /selinux
    Current mode: enforcing
    Mode from config file: enforcing
    Policy version: 24
    Policy from config file: targeted

Cause

SELinux on a source server blocks connection from a destination server.

Resolution

  • Temporarily disable SELinux (until reboot), using the following command:
    # /usr/sbin/setenforce 0
  • Rerun a migration
Have more questions? Submit a request
Please sign in to leave a comment.