Clone Bitbucket repository Permission denied

kvvaradha

Member
Jul 9, 2014
8
0
51
cPanel Access Level
DataCenter Provider
I am trying to clone my private repository from bitbucket to cpanel powered hosting,its 90.XX i think thats the recent one. And i have read existing questions and answers, From that i got some clues and tried to fix it as musch as i can. So dont make mark my question as duplicate before understand my question clearly.

For my i created properly the RSA private and public key's and it works fine with local cloning to my pc and push, pull changes and it works absolutely fine. no issues. But from cpanel server it fails to connect and shows error like this

Permission denied (publickey). fatal: Could not read from remote repository.

So i tried to find a solution from stackoverflow, with experts solutions, From that answers i found something strange. Probably, someone help me to fix it.

$ssh -T [email protected]
I tried this command in both local and server. local shows

You can use git or hg to connect to Bitbucket. Shell access is disabled.

But in server it asks the Passphrase 3 times and finally it shows permission denied. Looks like something i need to know to fix it.

$ ssh -T [email protected]
Enter passphrase for key '/home/kvc/.ssh/id_rsa':
Enter passphrase for key '/home/kvc/.ssh/id_rsa':
Enter passphrase for key '/home/kvc/.ssh/id_rsa':
Permission denied (publickey).
I tried to make clone by reading [this tutorial][1]. I am expecting solution from experts to fix it. I already spent hours and hours and got tired of doing it.


[1]: Guide to Git™ - Set Up Access to Private Repositories | cPanel & WHM Documentation
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
Did you by chance also check the GitHub documentation on this error specifically?
Error: Permission denied (publickey) - GitHub Docs
and ensure that you've taken these steps?

I ran through the guide to git documentation you linked to set up access and was not able to replicate any issues with accessing a private repository.
 

kvvaradha

Member
Jul 9, 2014
8
0
51
cPanel Access Level
DataCenter Provider
Thank you for helping me with this issue, I have tried these steps.
The problem is, i can clone respositories by accessing the terminal, it works fine. But i cant do it from cpanel git version control. Looks strange for me. So the terminal commands are working fine. Can you help me some other way to identfy the reason causing this issue.
 
Thread starter Similar threads Forum Replies Date
M File Management 1
dory36 File Management 0