Reputation: 391
Im doing SSH git clone -
git clone [email protected]:###############.git two3
for five minutes nothing happens, its stuck at
Cloning into 'two3'.
then it actually starts cloning. repo is about 35 MB size.
How to speed up the cloning.
this takes a long time
Upvotes: 2
Views: 2205
Reputation: 1
I was facing same issue for long time, then I tried running this command ssh -T [email protected]
and it resolved the issue for me.
You should verify the authenticity of the GitLab host, if you are cloning for the first time.
Reference : https://docs.gitlab.com/ee/user/ssh.html
Upvotes: 0
Reputation: 391
Aswering my own question This is due to Ipv6. It gets resolved when i am using -
echo "# To prefer IPv4 over everything else" >> /etc/gai.conf
echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf
echo "precedence ::1/128 50" >> /etc/gai.conf
echo "precedence ::/0 40" >> /etc/gai.conf
echo "precedence 2002::/16 30" >> /etc/gai.conf
echo "precedence ::/96 20" >> /etc/gai.conf
Upvotes: 2
Reputation: 1324737
There is a recent incident, with its resolution ticket, which could explain some of what you are experiencing.
Plus the SSH loadbalancer had some issues as well.
Check also if the issue persists for other GitLab repositories you would clone through SSH.
Upvotes: 0