Plesk

Some Plesk operation failed: no secure shell available

Symptoms

Cause

The pre-defined shell set in the file /usr/local/psa/admin/conf/site_isolation_settings.ini overrides the settings configured at the Service Plan level:

# egrep "shell.*=" /usr/local/psa/admin/conf/site_isolation_settings.ini
shell = /bin/bash

Resolution

Note: The solution described in this article needs to be applied by the Plesk server administrator via SSH. If server access is not possible, please contact the service provider.

  1. Connect to the server via SSH

  2. Back up the configuration file /usr/local/psa/admin/conf/site_isolation_settings.ini:

    # cp -a /usr/local/psa/admin/conf/site_isolation_settings.ini{,.backup}

  3. Comment out the forced shell parameter from the configuration file /usr/local/psa/admin/conf/site_isolation_settings.ini:

    # sed -i.bak 's/shell.*=/;shell =/g' /usr/local/psa/admin/conf/site_isolation_settings.ini

  4. Control the SSH access permissions in the corresponding Service Plan or per-subscription:

    • Service Plan: Log in to Plesk GUI > Service Plans > Service Plan Name > Permissions > Management of access to the server over SSH > Can allow access only to a chrooted environment or Can allow access to any type of shell > Update & Sync

    • Subscription: Log in to Plesk GUI > Subscriptions > example.com > Customize (Right-sidebar) > Permissions > Management of access to the server over SSH > Can allow access only to a chrooted environment or Can allow access to any type of shell > Update & Lock

  5. In case the issue persists, enable the Setup of potentially insecure web scripting options that override provider's policy option in the corresponding Service Plan or per-subscription:

    • Service Plan: Log in to Plesk GUI > Service Plans > Service Plan Name > Permissions > Enable Setup of potentially insecure web scripting options that override provider's policy option > Update & Sync

    • Subscription: Log in to Plesk GUI > Subscriptions > example.com > Customize (Right-sidebar) > Permissions > Enable Setup of potentially insecure web scripting options that override provider's policy option > Update & Lock

Exit mobile version