cPanel, Git integration with cPanel

cPanel offers Git integration through the web interface.
You have always been able to use Git with your cPanel account from the command line, but cPanel has also introduced a web-based integration with Git that gives you another option. 

You can find it on your dashboard in the Files section. 

To learn more, see this series of blog posts from cPanel explaining what git is, how the new integration works, and what's coming next.

When connecting to your cPanel-hosted git repo from your local machine, you will need to configure your local machine to use your ssh key with git.  If you are using a graphical git client or file manager extension, review the documentation for your software.  One example for using your cPanel-hosted repo from a linux command line on your local machine is below. There are many other ways to do this, so feel free to use whatever method works best for you.


  1. edit the file ~/.ssh/config to add a configuration for your cPanel account
    • If the file does not exist, create it

    • enter the following lines into the file, replacing "cpanelaccountname" with the actual name of your cpanel account and "sshprivatekeyname" with the name of your private ssh key (id_rsa by default)

      Host cpanelaccountname
              Hostname cpanelaccountname.web.illinois.edu
              IdentityFile ~/.ssh/sshprivatekeyname
              IdentitiesOnly yes
  2. Clone your cPanel-hosted repo to your local machine
    • From your local machine, run 

      git clone cpanelaccount@cpanelaccountname:/home/cpanelaccountname/path/to/repo
    • if your key had a passphrase, enter the passphrase when prompted
    • If you get an error message, read it and take the recommended action. The most common error is that the ssh keyfile has permissions that are too open
  3. From here, you can use whatever git commands fit into your workflow without modification


KeywordscPanel, web hosting, git, version control   Doc ID85002
OwnerWeb H.GroupUniversity of Illinois Technology Services
Created2018-08-17 16:01:09Updated2022-06-13 16:26:37
SitesUniversity of Illinois Technology Services
Feedback  1   1