Topics

Unable to clone zephyr code with 'git clone ssh:...'


Piotr Mienkowski <Piotr.Mienkowski@...>
 

I followed all the instructions on "Gerrit accounts" Wiki page, specifically I uploaded my public ssh key to Gerrit server and added it to my local key ring. Unfortunately the following command

git clone ssh://<LFID>@gerrit.zephyrproject.org:29418/zephyr zephyr-project

times out. <LFID> is my Gerrit Username. I confirmed that the full URL is the same as the one mentioned at the top of the Zephyr project summary page at https://gerrit.zephyrproject.org/r/gitweb?p=zephyr.git;a=summary. The exact message is:

Cloning into 'zephyr-project'...
ssh: connect to host gerrit.zephyrproject.org port 29418: 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 able to connect via ssh to other servers outside my company network, also cloning other git repositories via ssh works, as well as cloning with
git clone https://gerrit.zephyrproject.org/r/zephyr

Typically when connecting via ssh to a new host ssh would ask if we want to add the host to the known hosts list. This did not happen here indicating connection problems. Indeed if I run nmap
$ nmap -A gerrit.zephyrproject.org -p29418

Starting Nmap 6.47 ( http://nmap.org ) at 2016-09-01 09:59 CEST
Nmap scan report for gerrit.zephyrproject.org (199.19.213.246)
Host is up (0.11s latency).
rDNS record for 199.19.213.246: compute-199-19-213-246.ca-ymq-1.vexxhost.net
PORT STATE SERVICE VERSION
29418/tcp filtered unknown

the port is completely not responding. I believe the problem is on LF side not mine, but it would be great to know if anyone else is having similar issue?


Tomasz Bursztyka
 

Hi Piotr,

the port is completely not responding. I believe the problem is on LF
side not mine, but it would be great to know if anyone else is having
similar issue?
Seems to work fine here on my side. Are you sure your company is not
filtering out non known service ports when connecting to them? (i.e. it
accepts 22, 443, 80 etc... but not something exotic as 29418)

Can you try outside your company's network? (on you private computer).

Tomasz


Piotr Mienkowski <Piotr.Mienkowski@...>
 

Hi Tomasz,

Thanks for the tip. Indeed it looks like it's my company filtering out the packets. If I run traceroute to gerrit.zephyrproject.org port 80 it works fine. If it's to port 29418 traceroute stops within company network.

I should have though about this earlier. Thanks for help!

Cheers,
Piotr