Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable to start migration in Plesk: Failed to connect to the source server ‘source’ (203.0.113.2) by SSH: encountered RSA key, expected OPENSSH key

 
almalinuxbackup restore migrationcentoscloudlinuxdebian

Symptoms

  • Migration via SSH key fails with one of the following errors in Tools & Settings > Migration and Transfer Manager:

    Failed to connect to the source server 'source' (203.0.113.2) by SSH: encountered RSA key, expected OPENSSH key

    Failed to check SSH connection to the source server 'source' (203.0.113.2): q must be exactly 160, 224, or 256 bits long

    Failed to check SSH connection to the source server 'source' (203.0.113.2): p must be exactly 1024, 2048, or 3072 bits long

  • Paramiko version 2.9 or above is installed on the target server:

    Debian-based OS (Debian, Ubuntu, etc.):

    # dpkg --list | grep paramiko
    ii plesk-py27-paramiko 2.10.3-ubuntu.20.04.220330.1131 amd64 SSH2 protocol library

    RPM-based OS (CentOS, RHEL, CloudLinux, AlmaLinux, etc.):

    # rpm -qa | grep paramiko
    plesk-py27-paramiko-2.10.3-1centos.7.220330.1131.x86_64

  • OpenSSH version 5.9 or lower is installed on the source server:

    # ssh -V
    OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013

Cause

Product issue:

  • #PMT-5041

Workaround

Regardless of which Linux distributive is in use, before applying the personalized steps below, add the SSH-RSA support to the SSH client's config file at /etc/ssh/ssh_config

  1. Connect to the target server via SSH;
  2. open the file

    # vi /etc/ssh/ssh_config

  3. Add the following line

    # PubkeyAcceptedKeyTypes +ssh-rsa

For Debian-based distributions (Debian, Ubuntu, etc)

  1. On Plesk's PMM repository, find the folder for your Linux Distribution and get the URL for Paramiko 2.7.

  2. Replace the URL from the command below and fetch the Paramiko package:

    # wget http://autoinstall.plesk.com/PMM_0.1.11/dist-deb-Debian-10.0-x86_64/packages/plesk-py27-paramiko_2.7.1-debian.10.200520.1813_amd64.deb

  3. Downgrade Paramiko with the following commands:

    # dpkg -r --force-depends plesk-py27-paramiko
    # dpkg -i plesk-py27-paramiko_2.7.1-debian.10.200520.1813_amd64.deb

For RPM-based distributions (CentOS, RHEL, Cloudlinux, etc.)

  1. Connect to the target server via SSH;

  2. On Plesk's PMM repository, find the folder for your Linux Distribution and get the URL for Paramiko 2.7.

  3. Remove the current paramiko package from the server:

    # rpm -e plesk-py27-paramiko --nodeps

  4. Replace the URL from the command below with the one from step 2 and install the Paramiko package:

    # rpm -i --nodeps http://autoinstall.plesk.com/PMM_0.1.11/dist-rpm-CentOS-7-x86_64/packages/plesk-py27-paramiko-2.7.1-1centos.7.200210.1834.x86_64.rpm

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

WP Toolkit 6.2 Release Now Available

Read More »

Recommended OSs for Plesk

Read More »

CentOS Project Announces Early End-of-Life Date for CentOS 8

Read More »
Knowledge Base

Unable to open Backup Manager in Plesk: no element found: line 1, column 0

Read More »

Unable to start Plesk Premium Antivirus ( Dr.Web ) on Plesk server

Read More »

All websites hosted in Plesk are not accessible over HTTPS: 502 Bad Gateway or ERR_CONNECTION_REFUSED

Read More »

Cannot create/restore a backup of PostgreSQL database: Cannot run PostgreSQL client tools; make sure that they are installed

Read More »

Hosting Wiki

  • RESTful Web Service
  • Cross Site Request Forgery (CSRF)
  • Cross-Origin Resource Sharing (CORS)
  • Server Redundancy
  • Cloud Service Architecture
  • Virtualizor
  • Postfix
  • On-Demand Services
  • Linux Containers
  • PostgreSQL
  • AMP
  • DDoS
  • Bare Metal Server
  • Backup
  • Denial of Service
  • Red Hat Virtualization
  • Virtuozzo
  • Oracle VM Server
  • Citrix Hypervisor
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Virtualization
  • VirtualMin
  • Hosting Control Panel
  • Plesk
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
  • URL
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • Email Virus Protection
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family