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
562 views
in Technique[技术] by (71.8m points)

git - Clone Azure Repository on cPanel

I am trying to clone Azure hosted repository on a cPanel account. I have generated public and private SSH keys from cPanel -> Manage SSH Keys section.

Later I have added the public key in my Azure account following this link. When I use the SSH URL (eg: [email protected]/MyProject) to clone the repository on cPanel it throws below exception

Error: (XID azuvpp) “/usr/local/cpanel/3rdparty/bin/git” reported error code “128” when it ended:
Permission denied, please try again. Permission denied (password,publickey).
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Note - The idea here is to try implement CI/CD to automate push deployment on cPanel whenever there is a commit on master branch in Azure repository.

Open to ideas and suggestions

question from:https://stackoverflow.com/questions/65944809/clone-azure-repository-on-cpanel

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

1 Reply

0 votes
by (71.8m points)

Try and test that SSH access from the cPanel terminal (cPanel >> Home >> Advanced >> Terminal)

ssh -Tv [email protected]

Check in particular if your public/private ssh keys filenames are mentioned in the output (if your keys are not the standard default ~/.ssh/id_rsa, you would need a ~/.ssh/config file in order to specify the private key file path)


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

...