Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unble to Clone private Git repository

Discussion in 'General Discussion' started by auxiliaryjoel, Jan 27, 2019.

  1. auxiliaryjoel

    auxiliaryjoel Registered

    Joined:
    Jan 27, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
    #1 auxiliaryjoel, Jan 27, 2019
    Last edited by a moderator: Jan 30, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,456
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice