SFTP to public_html only

Ubuntu:
20.04:

I have set up SFTP for every user.
They can access their own site in: /home/domain.com/ etc.
In some cases I would like to restrict that to only:
/home/domain.com/public_html/ etc.

How can I do that?

Hi,

You could enable jail for domain:

Thanks, but then I get:
Failed to save owner limits : Failed to enable chroot jail : Chroot jail is not enabled for this domain.

Where can I enable that?

And one more: If I want to have this as default. Is it possible?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.