- Plesk for Linux
Migration fails to start the connection:
CONFIG_TEXT: Unable to log in to the source server 'source' (203.0.113.2) by SSH service: administrator login and/or password are not correct. Set valid SSH credentials for the server and click "Prepare migration".
An ECDSA key with 521 length is being used for the connection.
SSH Connection works correctly with the key from target to the source:
# ssh 'email@example.com'
On the source server in
/var/log/securethe following records can be found:
CONFIG_TEXT: May 10 23:39:58 user sshd: Connection closed by 203.0.113.1 port 38772 [preauth]
May 10 23:48:02 user sshd: error: key_from_blob: invalid format [preauth]
May 10 23:48:02 user sshd: error: userauth_pubkey: cannot decode key: ecdsa-sha2-nistp256 [preauth]
This is Plesk Migrator bug with ID #PMT-4594 which is planned to be fixed in future updates.
Follow the article to be notified when the bug is fixed - the article will be updated.
As a workaround use a key with 256 length
Connect to the server via SSH;
Create the key pair
# ssh-keygen -t ecdsa -b 256
CONFIG_TEXT: Generating public/private ecdsa key pair.
Enter file in which to save the key (/root/.ssh/id_ecdsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_ecdsa.
Your public key has been saved in /root/.ssh/id_ecdsa.pub.
The key fingerprint is:
Copy the key to the Source server:
# ssh-copy-id -i /root/.ssh/id_ecdsa.pub firstname.lastname@example.org
Restart the migration