Migration cannot start: key type ssh-dss not in PubkeyAcceptedKeyTypes

Created:

2016-11-16 12:51:32 UTC

Modified:

2017-08-11 12:00:20 UTC

6

Was this article helpful?


Have more questions?

Submit a request

Migration cannot start: key type ssh-dss not in PubkeyAcceptedKeyTypes

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Migration cannot start with the following error in 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 -l --chmod=Fu=r,Du=rwx,go= -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20160927004329/ssh-keys/id_dsa.203.0.113.2 -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' /usr/local/psa/var/modules/panel-migrator/sessions/20160927004329/ssh_upload.1 root@203.0.113.2:/tmp/panel_migrator/version
exit code: 12
stdout:
stderr: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]

The following records appear in /var/log/secure :

Sep 27 00:57:18 mail sshd[13877]: Accepted password for root from 203.0.113.1 port 34806 ssh2
Sep 27 00:57:18 mail sshd[13879]: Accepted password for root from 203.0.113.1 port 34807 ssh2
Sep 27 00:57:20 mail sshd[13892]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]
Sep 27 00:57:20 mail sshd[13892]: Connection closed by 203.0.113.1 [preauth]

Cause

SSH server misconfiguration.

Resolution

Use this solution only if the following error is found in /var/log/secure file: 
userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]

Add the following parameter to /etc/ssh/sshd_config on the source server:

PubkeyAcceptedKeyTypes=+ssh-dss

Then, reload SSH server:

# service sshd reload
Have more questions? Submit a request
Please sign in to leave a comment.