Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
611 views
in Technique[技术] by (71.8m points)

git - Multiple (more than 1) private Github repos connected to cpanel - cannot create a second cpanel repository

I have multiple private repos in Github. When I try to setup a second cpanel repository (using the prescribed Git Version Control and SSH key/pair configuration instructions), the second repository fails with the dreaded 128 error:

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

I have two subdomains on my hosting account (think of them as 'test' and 'prod'), each pointing to its own subfolder (in cpanel File Manager) and each one has its own private repository in Github. The first subdomain (test) works great - Pull Requests feed through from Github to my website successfully every time. But when I try to setup a second cpanel Repository, the above error occurs - can't seem to shake this one.

I verified the key pairs are properly configured (cat ~/.ssh/id_rsa.pub and cat ~/.ssh/id_rsa3.pub), and found them properly loaded in the .ssh/ folder of cpanel. I even triple-checked my Github repos to make sure they each had their own Deploy keys (public SSH key from cpanel).

Any guidance would be greatly appreciated!

Thanks much!! Dan

question from:https://stackoverflow.com/questions/65911216/multiple-more-than-1-private-github-repos-connected-to-cpanel-cannot-create

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Git Version Control page showing 128 errorThe fact the second key has not a default name means it would require a ~/.ssh/config file indeed, as you mentioned.
But the CPanel SSH documentation does not clearly mention it does use said config file (even though it is mentioned in this tutorial).

Check first if this is an issue with a passphrase-protected provate key, as mentioned here.
Or that the private key was imported in CPanel with the wrong eol (end of line) character.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...