Symptoms
When attempting to create a new Git repository in the "cPanel Git™ Version Control" control icon of cPanel, you receive the following error message:
“/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.
Please make sure you have the correct access rights
and the repository exists.
Description
This happens when the remote Git repository that you have specified in the "Clone URL" field has rejected your access. This guide walks you through the process of configuring key authentication to access the remote repository that you are trying to clone.
If you are seeing the error message shown in the symptoms section above, you must use the SSH protocol rather than the Git or HTTPS protocols. The URLs that your Git provider gives you to use for the SSH protocol might start with ssh://, or for example in the case of Github, will just start with a username: git@
Before beginning the steps in the guide that is linked below, ideally you will have already obtained the SSH version of the Git repository URL for the remote repository that you need to clone, and you will have learned from your remote Git repository provider how to add a public SSH key to their system to allow access from your cPanel server.
Resolution
Please use our guide for configuring key authentication to resolve this error:
How to Configure SSH Key Authentication for Use with cPanel Git™ Version Control
Comments
0 comments
Article is closed for comments.