Gerrit setup help (resolved)

Howdy,
I am having trouble getting setup to be able to submit patches through Gerrit. I am stuck on:

->git clone “ssh://git.haiku-os.org/haiku”
Cloning into haiku
kex_exchange_identification: Connection closed by remote host
Connection closed by 104.248.198.131 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

->git clone “ssh://Coldfirex@git.haiku-os.org/haiku”
Cloning into haiku
kex_exchange_identification: Connection closed by remote host
Connection closed by 104.248.198.131 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

I have been following this: https://www.haiku-os.org/guides/building/get-source-git/
I have set my username and email address with the git commands.
Created my SSH key via ‘ssh-keygen -t rsa -C “your_email@youremail.com”’, and tied it to Gerrit.
Verified SSH was running via: eval ‘ssh-agent -s’
Added my key to SSH: ssh-add /boot/home/config/settings/ssh/id_rsa
“git remote -v” returns: fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)

Ideas?

Hi, first of all make sure you are using the correct username. Go to https://review.haiku-os.org/settings/ and look for the “username” field (not “display name” or anything else in the page). This is the login you need to use.

You can do a connection check:

ssh Coldfirex@git.haiku-os.org

You should get a welcome message from Gerrit telling you that direct shell access is not possible.

Thanks for the reply.
I verified the username is correct (case too just in case).

With that command I basically get the same error message.

→ ssh Coldfirex@git.haiku-os.org
kex_exchange_identification: Connection closed by remote host
Connection closed by 104.248.198.131 port 22

PulkoMandy - Using that command I verified it was working on my laptop. I determined that my UTM firewall was blocking SSH on Haiku. Ugh…
Working now though, thanks!!

1 Like