Give access to specific directory via SSH key
Is it possible to give access to someone only to a specific directory of a domain, i.e. a coder to do specific word on that level, without having any other DB access rights?
-
You can't do this with SSH Keys, an ssh key provides user authentication and access it does not determine what the user has access to. The best way to do what you're requesting is to use an FTP account with limited access - when you create an FTP account you can specify the folder they have access to change things in. Information on this can be found here: FTP Accounts | cPanel & WHM Documentation 0 -
Thanks, that means I will have to reenable Password Authentication from "SSH Password Authorization Tweak", correct? 0 -
Yea, the only other option would be SFTP - How to Configure Your SFTP Client | cPanel & WHM Documentation you could chroot the users using jailshell but I believe they'd still be able to see other folders but not access them. 0
Please sign in to leave a comment.
Comments
3 comments