I am hosting a few websites with CyberPanel, and I have noticed that if I give my users a ssh/sFTP account (created using the “SET UP SSH ACCESS” feature), they can browse all of my server’s folders. Is there a way to restrict those accounts to their directories?
I’ve tried adding
ChrootDirectory %h in my
/etc/ssh/sshd_config, but then I couldn’t login at all