Applicable to:
- Plesk for Linux
Symptoms
-
The following error is displayed when a website is imported in Domains > example.com > Website Importing:
-
Migrating from cPanel via Tools & Settings > Migration & Transfer Manager fails with the following error:
Failed to perform action: Fetch data from source cPanel
Cause: Failed to connect to the the source server 'cpanel' (203.0.113.2) at '203.0.113.2' by SSH as 'root': ('Bad authentication type', [u'publickey', u'gssapi-keyex', u'gssapi-with-mic']) (allowed_types=[u'publickey', u'gssapi-keyex', u'gssapi-with-mic'])
That is a critical error, migration was stopped.
Cause
Password authentication is disabled on the source server.
Note: In regards to Website Importing the warning also appears if the SSH access on the source server was configured via SSH key only.
Resolution
-
Connect to the source server via SSH
-
Edit file
/etc/ssh/sshd_config
and enable SSH authentication by password:PasswordAuthentication yes
-
Import website via Domains > example.com > Website Importing or via Tools and Settings > Migration & Transfer Manager by specifying the SSH username and password.
Comments
2 comments
I made the config modification and also restarted the server, but the result is the same error:
Failed to check SSH connection to the source server 'source' (18.197.160.70): Unable to connect to '18.197.160.70' by SSH: Bad authentication type; allowed types: [u'publickey'].
Developer... make sure you have done it in sshd_config and not ssh_config. The other thing is your system could be using ssh_config instead of sshd_config, so best to check both.
Please sign in to leave a comment.