DEV Community

MilesWeb
MilesWeb

Posted on

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

The error code 128 may be encountered by many users of cPanel. cPanel's "cPanel GitTM Version Control" icon displays the following error message when you attempt to create a new Git repository:

“/usr/local/cpanel/3rdparty/bin/git” reported error code “128”when it ended: Permission denied, please try again.`

Permission denied, please try again.

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

fatal: Could not read from remote repository.

Description

The "Clone URL" field will not allow you access to the remote Git repository. In this guide, you will learn how to configure key authentication for accessing the remote repository.

In order to resolve the error described in the symptoms section above, you need to use SSH instead of Git or HTTPS. For SSH, Git providers usually give you a URL that starts with ssh://, or in the case of Github, just a username: git@

Before starting the steps in the guide that is linked below, you should have already obtained the SSH version of the Git repository URL for the remote repository you need to clone. The instructions for adding a public SSH key to your remote Git repository provider's system so you can access it from your cPanel server are provided below.

How to Fix?

You need to learn to set up and access private repositories using Git. Click here

Top comments (0)