GIT repo connection failed in cPanel
I have added SSH keys to cPanel
Then you should use an SSH URL (git@server:user/repo
), not an HTTPS one (which starts with https://...)
See "Guide to Git - Set Up Access to Private Repositories" from the CPanel Knowledge Base.
git clone git@example.com:MyStuff/private-repository.git
You can see here a typical BitBucket SSH URL:
git@bitbucket.org:<account_name>/<repo_name>.git
# or
ssh://git@bitbucket.org/<account_name>/<repo_name>.git
Note: the username for a BitBucket repo is always git
.
Try the following:
ssh-keygen -t rsa -b 2048 -C "yourserverusername@yourserverdomain.com"
Also confirm that the repository is public, i just had this issue and figured my repository was private so it couldn't be found