Unble to Clone private Git repository
Hi I've followed the steps in this document,
git@example.com:MyStuff/private-repository.git
The example command I used as this:
git clone git@example.com:MyStuff/someusrname.git
as my private repo is this:
- Removed -
but I get this error:
Cloning into 'someusrname'...
ssh: connect to host example.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I am running these commands via ssh within CLI (Terminal)
Can anyone help?
-
Hi @auxiliaryjoel This sounds like some part of the SSH key generation wasn't done correctly but it also looks like the URL you're listing isn't the full URL for the Private Repository. I've tested these instructions and I can confirm they do work/are accurate. I'd suggest starting over and go step by step ensuring that you're performing each as listed. If you're still unable to set this up it may be best to open a ticket with us, which you can do using the link in my signature. 0 -
Hi, I've similar trouble I create a new repository and when i try to first time push my project, server reset my connection. I'm using third-party hosting kex_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. URL is ssh connection like ssh://user@example.com:6543/home/user/GIT/project Anyone can help me? Thanks 0 -
URL is ssh connection like ssh://user@example.com:6543/home/user/GIT/project
Hello @mcastellon, The example in our documentation notes the following for step 5: [QUOTE] To clone the repository, run the following command on the cPanel account, where git@example.com:MyStuff/private-repository.git represents the private repository's clone URL:git clone git@example.com:MyStuff/private-repository.git
In the example you shared, there's no reference to the ".git" file in the project directory. Can you double check you are using the format suggested in the document linked below?0 -
Hello, - Does git@example.com exist as a user on your server?
- Does the user also have shell access?
- Does your server use port 22 for SSH?
0
Please sign in to leave a comment.
Comments
5 comments