Applicable to:
- Plesk for Linux
Symptoms
-
Migration can not be started on a Plesk server with one of the errors below:
PLESK_ERROR: Command execution failed on the local server with non-zero exit code.
PLESK_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= --timeout=30 -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20230101000000/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_17_0_pmm_shared/ root@203.0.113.2:/root/plesk_migrator/plesk_migrator-3vg2rgqorhcffzc3exzx7ockhvn3i55v/pmm_agent
exit code: 255
stdout:
stderr: root@203.0.113.2: 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]
That is a critical error, migration was stopped.
Cause
Disabled ssh-rsa
signature method on the target server.
Manual connection attempt from the target server to the source with enabled debug returns the following output:
# ssh -vvv -i .ssh/id_rsa_migration root@203.0.113.2
debug1: send_pubkey_test: no mutual signature algorithm
debug2: we did not send a packet, disable method
Resolution
-
Connect to the target server via SSH.
-
Enable the algorithm by executing the command below:
# printf "\nPubkeyAcceptedKeyTypes +ssh-rsa\n" >> /etc/ssh/ssh_config
Comments
6 comments
It doesn't work even ran the command on target server.
Failed to deploy Python on source server
Cause: Command execution failed on the local server with non-zero exit code.
command: rsync -l --chmod=Fu=rw,Du=rwx,go= --timeout=30 -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh-keys/id_rsa.IP addres -p 8022 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh_upload.1 root@IP addres:/etc/yum.repos.d/plesk-migrator.repo
exit code: 255
stdout:
stderr: root@IP addres: Permission denied (gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]
That is a critical error, migration was stopped.
simon chan
Hi. This means there are other settings preventing connection.
I'd suggest:
- to check if the key from /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh-keys/id_rsa.pub is installed at /root/.ssh/authorized_keys on the source server
- to try connecting manually via SSH from target to source(with ssh debug options: `-vvv`), using that key
That should give some insight.
There is nothing in the folder /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh-keys
The folder is removed right away once migration attempt is over. You need to use inotify-tools or make haste to get contents out of there. Then, drop the public key on the source server and re-try manually.
I was unable to make it work untile I used
ssh-keygen -t ecdsa -b 256
on the destination server and used the new key to connect
Hello!
I was able to make it work following this KB
https://support.plesk.com/hc/en-us/articles/13809579796503-Migration-does-not-start-from-the-source-server-powered-by-ubuntu-14-Permission-denied-publickey-password?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjo5Mjc3OTc5LCJ1c2VyX2lkIjpudWxsLCJ0aWNrZXRfaWQiOjk1MzE4MDExLCJkZWZsZWN0aW9uX2lkIjoyNDM2MzEyNDM3MTYwNywiYXJ0aWNsZXMiOlsxMjM3NjkyMDc2OTY4NywxMzgwOTU3OTc5NjUwMywxMjM3NzUxNjk2MjMyN10sInRva2VuIjpudWxsLCJleHAiOjE3MjE3MjQ0Mjl9.qMPXeE3y_eTjXOM8XczfkymOKLo4dm1nTLHdoJ2kfSI&solved=0
it looks like the password authentication method doesn't work any longer
Please sign in to leave a comment.