Ask Your Question

Unable to clone Git Repository [closed]

asked 2015-03-15 04:26:20 -0500

Hassnain gravatar image

I am trying to connect to gerrit hosted on my VPS. I am using Git Bash for windows. I have already added keys on gerrit server and i have added my public key to authorized_keys as well when i run ssh -p 29418 <username>@<gerrit-server> i will see below welcome message

  ****    Welcome to Gerrit Code Review    ****

  Hi Full Name, you have successfully connected over SSH.

  Unfortunately, interactive shells are disabled.
  To clone a hosted Git repository, use:

  git clone ssh://username@<gerrit-server>:29418/REPOSITORY_NAME.git

but when i clone the repository by running following command

git clone ssh://<username>@<gerrit-server>:29418/project-name.git

i see the following error in my Git Bash terminal

Cloning into 'project-name'...
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I am not able to understand what's going on and how to successfully clone my projects in my machine. Can anyone please help me in this matter?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by fungi
close date 2015-03-16 11:32:56.085790

2 answers

Sort by ยป oldest newest most voted

answered 2015-03-16 11:32:14 -0500

You've posted to the OpenStack community's Q&A site asking how to run a Gerrit server. While the OpenStack community does use Gerrit, we are not the developers of Gerrit and it has it's own distinct user community who are better equipped to answer your question. Please ask at!for... instead.

edit flag offensive delete link more

answered 2015-03-16 11:12:58 -0500

updated 2015-03-16 11:13:30 -0500

Can you try gerrit ls-projects?

ssh -p 29418 <username>@<gerrit-server>  gerrit ls-projects  | grep -i <the project you are trying to clone>

Also try ls-members to check for permission

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-15 04:26:20 -0500

Seen: 956 times

Last updated: Mar 16 '15