Why is there no answer using the git protocol to clone the project?

I'm trying to clone a branch Linux

from git://git.kernel.org

to my local machine:

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core
Cloning into 'linux'...

      

But there is no answer. Use the tcpdump

and tags Wireshark

to check the captured packets:
enter image description here We can see that the connection has been TCP

established. But after the client sent the request with help git smart protocol

, there was no response.

Can anyone provide some hints?

Update:
(1) As suggested by @MariaInesParnisari, using a flag --verbose

, but it doesn't show more information:

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core --verbose
Cloning into 'linux'...
Looking up git.kernel.org ... done.
Connecting to git.kernel.org (port 9418) ... 147.75.110.187 done.

      

(2) Replace the protocol https

, it worked:

# git clone https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core --verbose
Cloning into 'linux'...
POST git-upload-pack (gzip 25015 to 12570 bytes)
remote: Counting objects: 5287534, done.
remote: Compressing objects: 100% (807310/807310), done.

      

+3


source to share


1 answer


I have never been able to clone a job using the git protocol: it uses the special port 9418, which always blocks.



Only https works / is allowed, git and ssh are usually blocked (for outgoing connections, since ssh is allowed for servers inside the intranet)

0


source







All Articles