Question
How to grant a subscription user SSH/SFTP access to its home directory?
Answer
-
Go to Domains > example.com > Web Hosting Access.
-
Select a user shell in the Access to the server over SSH 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 drop-down 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.