auxiliaryjoel

Registered
Jan 27, 2019
1
0
1
Australia
cPanel Access Level
Reseller Owner
Hi I've followed the steps in this document,
Guide to Git - Set Up Access to Private Repositories - cPanel Knowledge Base - cPanel Documentation
All seems to be working, except for last step :

Step 5 clone the repository
git clone [email protected]:MyStuff/private-repository.git
The example command I used as this:
git clone [email protected]: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?
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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.
 

mcastellon

Registered
Sep 24, 2019
1
0
1
Argentina
cPanel Access Level
Website Owner
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://[email protected]:6543/home/user/GIT/project

Anyone can help me?

Thanks
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
URL is ssh connection like ssh://[email protected]:6543/home/user/GIT/project
Hello @mcastellon,

The example in our documentation notes the following for step 5:

To clone the repository, run the following command on the cPanel account, where [email protected]:MyStuff/private-repository.git represents the private repository's clone URL:

git clone [email protected]: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?


Thank you.
 

Yakedo

Registered
Jul 2, 2020
1
0
1
France
cPanel Access Level
Website Owner
Hello everyone,

I've been encountering the same issue as mentionned above while following the steps on the Guide to Git - Set Up Access to Private Repositories - cPanel Knowledge Base - cPanel Documentation.

Everything seemed to work fine until the 4th step :
Code:
The only response I get is :
Code:
ssh: connect to host github.com port 22: Connection refused
I tried to run the host github.com to see if the server was at least resolving the repository host to the correct IP address, and then I get :
Code:
github.com has address 140.82.118.4
github.com mail is handled by 5 alt1.aspmx.l.google.com.
github.com mail is handled by 5 alt2.aspmx.l.google.com.
github.com mail is handled by 1 aspmx.l.google.com.
github.com mail is handled by 10 alt3.aspmx.l.google.com.
github.com mail is handled by 10 alt4.aspmx.l.google.com.
So I conclude it does, but it just won't work.

Can anyone help ? I don't know what I did wrong.

Thanks in advance.