Articles in this section

Opening SSH Terminal on domain in Plesk fails: Connection Failed; Connection to the plesk-ssh-terminal service failed

Plesk for Linux kb: technical

Symptoms

  • On a Plesk for Linux, opening SSH Terminal in Domains > example.com fails:

    Connection Failed
    Connection to the plesk-ssh-terminal service failed. Try reconnecting or ask your service provider to make sure the plesk-ssh-terminal service is running.

  • In the SSH service configuration file /etc/ssh/sshd_config, the option PermitRootLogin is set to no:

    # grep PermitRootLogin /etc/ssh/sshd_config
    PermitRootLogin no

There can be couple of PermitRootLogin like follows:

# grep PermitRootLogin /etc/ssh/sshd_config
PermitRootLogin no
PermitRootLogin yes

Cause

Bug PPPM-14124 which was fixed in Plesk Obsidian 18.0.56 (version 1.3.3 of the SSH Terminal extension).

Resolution

Update both Plesk and SSH Terminal extension to the latest versions.

If update is not possible for some reason, use the workaround
  1. Connect to the server via SSH.

  2. Download the patched file:

    # wget https://support.plesk.com/hc/en-us/article_attachments/17137565398807

  3. Backup the file to be fixed and replace it with the patched one:

    # cp -ap /usr/local/psa/admin/plib/modules/ssh-terminal/library/Visibility.php{,.old} && cp -f 17137565398807 /usr/local/psa/admin/plib/modules/ssh-terminal/library/Visibility.php

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.