Articles in this section

Unable to start SSH session or Plesk migration: Failed getting banner

Plesk for Linux kb: technical ext: migrator ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk migration fails:

    CONFIG_TEXT: Error: launchpad error (Error code = 2):
    == STDERR ====================
    Unable to start SSH session: Failed getting banner
    ==============================

    OR

    CONFIG_TEXT: Plesk for Linux is not found on the specified source server.

  • Cannot connect to the source server via SSH:

    # ssh 203.0.113.2
    ssh_exchange_identification: Connection closed by remote host

Cause

Not enough connections permitted for SSH service on the source server.

Resolution

Note: if you don't have root access to Plesk via SSH, contact your hosting provider regarding the issue

  1. Login to the source server over SSH. If it is not possible, log in via local server console.

  2. Uncomment MaxStartups parameter in/etc/ssh/sshd_config and set the following value:

    CONFIG_TEXT: MaxStartups 50

  3. Reload SSH server configuration to apply the changes:

    # service sshd reload

Was this article helpful?

Comments

1 comment
Date Votes
  • Just to let you know. This seems to fix also the error “kex_exchange_identification: Connection closed by remote host” from Plesk Migrator. Full error message:

    Failed to copy mail content of subscription. Most probably that happens because of a network-related issue. Check network connections between source and target servers, then run migration for that subscription once more.
    Migration tools tried to perform operation in 3 attempts.
    ----------------------------------------------------------------------------
    Attempt #1 failed with the following error:
    Rsync failed to copy mail content from the source (the source server 'source' (xxx.xxx.xxx.xxx)) to the target server (target Plesk server): Command execution failed on the local server with non-zero exit code.
    command: /usr/bin/rsync -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20260116135504/target-server/ssh-keys/id_rsa.xxx.xxx.xxx.xxx -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' --archive --timeout=30 --exclude=maildirsize --exclude='.qmail*' --exclude=@attachments/ root@xxx.xxx.xxx.xxx:/var/qmail/mailnames/domain1.com/mail.account/ /var/qmail/mailnames/domain1.com/mail.account/
    exit code: 255
    stdout: 
    stderr: kex_exchange_identification: Connection closed by remote host
    Connection closed by xxx.xxx.xxx.xxx port 22
    rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
    rsync error: unexplained error (code 255) at io.c(228) [Receiver=3.2.5]

    1. This could happen because of a network connection issue. Run migration for that subscription once more.
    2. Check whether rsync is installed and configured on the source server.

    0

Please sign in to leave a comment.