Clone Bitbucket repository Permission denied
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 git@bitbucket.org
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 git@bitbucket.org
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
-
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. 0 -
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. 0 -
Hello again, Any further feedback for me to fix it. 0
Please sign in to leave a comment.
Comments
3 comments