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 optionPermitRootLogin
is set tono
:# grep PermitRootLogin /etc/ssh/sshd_config
PermitRootLogin no
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
-
Connect to the server via SSH.
-
Download the patched file:
# wget https://support.plesk.com/hc/en-us/article_attachments/17137565398807
-
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