Cantech Knowledge Base

Your Go-To Hosting Resource

Resolving cPanel Git Error Code 128: ‘Permission Denied’ Issue

Most of the users experience error code 128 in cPanel. This usually happens when you try to create a new Git repository in the “cPanel GitTM Version Control” in cPanel. This error points to authentication or access issues between Git repository and cPanel environment.

This blog explains common causes and how to resolve cPanel Git error code.

Common Causes of cPanel Git Error Code

Here are some of the common reasons:

Incorrect Repository URL: When the URL is incorrect and it does not use the below SSH format.

Issues in SSH Key: The SSH key on the local environment might not exactly match the authorized key on the server.

Repository Ownership and Permissions: The permissions of the repository folder might not be set properly.

SELinux Configuration: SELinux settings can sometimes prevent Git operations.

Steps to Resolve cPanel Git Error Code 128

Check Repository URL

Verify if the repository URL is correct and it uses SSH format. Eg format:

ssh://[email protected]/path/to/repo.git.

Verify SSH Key Authentication

Check if the local SSH key matches with the public key authorized in the cPanel SSH Access section. If not configured properly, add the public key to the remote Git provider’s system.

Check Ownership

Log in through SSH and go to the repository directory (e.g.,

/home/username/repo.git)

Use ls -al to check permission or ownership. If it is incorrect, then make changes:

chown username:username /home/username/repo.git

Replace the username with your cPanel account username.

Set Proper Permissions

Check the permissions using ls -al. See if they are set to 0755 or 0700. Update the permissions :

chmod -R 0755 /home/username/repo.git

This will enable proper access for Git operations

Restart Git Server

Once the changes are done, restart the Git server process in cPanel to apply these updates.

By properly addressing these issues, you should be able to resolve Error Code 128 effectively.

Cantech’s cPanel VPS Hosting offers High Speed and Maximum Perform

Cantech cPanel VPS Hosting provides full control on multiple sites through an user friendly and intuitive interface. Enjoy high speed 1 gbps connectivity with improved security and storage powered by KVM technology for maximum performance.

Contact us today and get maximum experience!

June 9, 2025