Skip to main content

Unble to Clone private Git repository

Comments

5 comments

  • cPanelLauren
    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
  • mcastellon
    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
  • cPanelMichael
    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
  • Yakedo
    Hello everyone, I've been encountering the same issue as mentionned above while following the steps on the
    0
  • cPanelLauren
    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.