Search code examples
sshpermissionspleskchroot

How to limit plesk user with SSH access only to his own webspace


I have created a Parallels plesk panel webspace and allowed SSH access:

  1. In plesk go to the webspace
  2. Websites & domains tab
  3. Web hosting access
  4. In Access to the server over SSH select /bin/sh

I connected by SSH and I realised I can go everywhere in the server and create files.

I would like to limit the SSH access just to the user directory.

I read about chroot. Do you think it is the solution? There isn't a way to configure directly in Plesk?


Solution

  • It was as easy as select:

    Access to the server over SSH: /bin/bash (chrooted)

    enter image description here