- Plesk for Linux
How to give SSH access to Plesk users?
For a single domain:
- Go to the Plesk > Domains > example.com > Web Hosting Access
- Set the appropriate user shell at Access to the server over SSH filed. Set values Forbidden, /sbin/nologin or /usr/sbin/nologin will not provide the user ability to log into the server via SSH.
- Click OK button to apply changes
Note: The non-selectable Forbidden value for non-admin users (see screenshot below) means that the Management of access to the server over SSH permission is set to Not allowed in the subscription and/or service plan settings by the service provider.
For all subscriptions under the same service plan:
To provide SSH access to all Plesk users of subscriptions with the same service plan (only for Service Provider view), do the following:
- Set required environment in the Home > Service Plans > Service_Plan_Example > Hosting Parameters > SSH access to the server shell under the subscription's system user dropdown list;
- Switch to Permissions tab in Service Plans > Service_Plan_Example and set
Management of access to the server over SSH to Not Allowed in order to propagate new value to all already existing subscriptions. If it is allowed, the change will not be propagated to existing subscriptions, only to newly created ones. See Plesk Guide for more details: to preserve the modifications made by customers, Plesk does not sync a plan property if a related permission is granted.
- Click Update & Sync button to apply changes and synchronize subscriptions with the service plan.
To ensure that the SSH access is provided to the
username user do the following:
- Connect to the server via SSH;
- Execute the following command:
# grep 'username' /etc/passwd
In the example above, the last value (
) corresponds to chrooted access. If it is required to provide SSH access to only one customer, it can be done only via separate Service Plan for that customer's subscriptions.