Allow SSH access to the public_html

toplisek

Well-Known Member
Jan 7, 2010
286
23
68
I like to give permission only to public_html using SSH access. Is this possible as FTP access is disabled and access can be only using SSH but seen all account.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @toplisek,

There's currently no feature in cPanel & WHM that allows you to enable SSH or SFTP access to virtual users. The currently functionality only allows you to control whether the cPanel username itself can access SSH/SFTP, and there's no feature to restrict which directories that user can access. We do have an open feature request you can vote for at:

SFTP access for virtual FTP users

Additionally, you may want to look into using Git as an alternative so that third-parties can make changes to website files via a local repository, and then "push" those changes to the repo hosted on the cPanel server. We provide more information about how it works as:

Guide to Git - cPanel Knowledge Base - cPanel Documentation

Thank you.
 

toplisek

Well-Known Member
Jan 7, 2010
286
23
68
I have clicked cPanel >> Home >> Files >> Git™ Version Control
under each account.
You have an open feature request 5 years ago. It seems it is old way.

1. Enter the clone URL for the remote repository. Can be this virtual URL due to framworks which mask folder structure and due to security?
2. Enter the desired path for the repository’s directory. How to manage this as framework will add virtual folders or this is real path to edited files for CMS.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463