Skip to main content

How to seure SFTP access for one folder within public_html?

Comments

6 comments

  • cPRex Jurassic Moderator

    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
  • toplisek


    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
  • toplisek

    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
  • cPRex Jurassic Moderator

    Yes - you can restrict what directories a sub user can access, but they still wouldn't be able to connect with sFTP.

    0
  • toplisek

    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
  • cPRex Jurassic Moderator

    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.