How to seure SFTP access for one folder within public_html?
How to secure SFTP access for one folder within public_html like public_html/storeshop/ as public_html should be secured access. As I understand public_html is not possible using SFTP?
-
Hey there! sFTP is only available to the main cPanel user, as it relies on an SSH connection. SSH isn't available for the subusers created inside cPanel, so they also wouldn't have sFTP access.
Manage Team users area also not able to take advantage of SSH either:
https://docs.cpanel.net/cpanel/preferences/manage-team/
- SSH File Transfer Protocol (SFTP) uses your cPanel account’s shell access to transfer files. Team user accounts cannot use SFTP. For more information, read our How To Configure Your SFTP Client documentation.
The only option would be to connect to the system with the main cPanel username to get that level of security.
0 -
If we /store/ or /shop/, within the URL, where do you place the code? As I understand it is a virtual URL and not related to the current physical folder inside the public_html root folder? It means we can place a secured subdomain shopify.mydomain.com as a physical folder, and it will be seen as a virtual URL within the main domain.0 -
If we set it up a subdomain on existing cPanel account, can we secure access to the Subdomain folder that Subdomain developer can not see public_html?
0 -
Yes - you can restrict what directories a sub user can access, but they still wouldn't be able to connect with sFTP.
0 -
1. So, FTP can be managed but SFTP is not possible as it is related to the account cPanel username? 2. Where to set it up FTP username for this directory?
0 -
1 - That's correct, as only the main username can use SSH.
2 - You can use Manage Team (https://docs.cpanel.net/cpanel/preferences/manage-team/ - the modern, recommended method) or the older User Manager (https://docs.cpanel.net/cpanel/preferences/user-manager/) to create the account and give it access to just one directory.
0
Please sign in to leave a comment.
Comments
6 comments