Question
- How to grant a Subscription user SSH/SFTP access to its home directory?
- How to grant a Domain user SSH/SFTP access to its home directory?
- How to grant SSH/SFTP access to the home directory of Subscriptions under a Service Plan?
Answer
-
Go to Domains (or Subscriptions) > example.com > Hosting & DNS > Hosting
-
Select a user shell Type in the SSH Access field
Note: To learn more about different types of the shells, visit this KB article.
-
Click OK to apply the changes.
Now, to connect to the Plesk server as a subscription user via SSH, use the Username under System user in Web Hosting Access.
Video instructions
-
Go to Service Plans > Plan_Name > Hosting Parameters.
-
Select a user shell in the SSH access to the server shell under the subscription's system user dropdown list.
Note: To learn more about different types of the shells, visit this this KB article.
-
Additional step: To propagate the new user shell to existing subscriptions, go to Service Plans > plan_name > Default > Permissions tab and set Management of access to the server over SSH to Not Allowed.
- Click Update & Sync to apply the changes and synchronize subscriptions with the service plan.
Additional Information
-
To allow Plesk users manage the option Access to the server over SSH in their panel, enable the option Management of access to the server over SSH at Service Plans > plan_name > Hosting Permissions.
-
Use the SSH Terminal extension for Plesk to access the server from the Plesk interface. Alternatively, install the SSH Key extension to add or remove an SSH key which the subscription owner can then use to access the server.
-
The feature to provide SSH access to a particular directory (for example,
/var/www/vhosts/example.com/httpdocs/
) is not implemented in Plesk yet. If you would like to see this functionality in Plesk, vote for this feature on Plesk UserVoice. The top-ranked suggestions are likely to be included in the next versions of Plesk.