- Plesk for Linux
How to give SSH access to Plesk users?
- 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 (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.
To provide SSH access to all Plesk users of subscriptions with the same service plan:
- Set 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;
- 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.