1

So lately, I update my SSH port to 558

cat /etc/ssh/sshd_config | grep Po
Port 558

I notice that my git pull keep hanging.

I research online, I found this SO link

Why does git pull hang?

I tried

git fsck && git gc --prune=now

I got

Checking object directories: 100% (256/256), done.
Checking objects: 100% (3806/3806), done.
Counting objects: 3840, done.
Compressing objects: 100% (1566/1566), done.
Writing objects: 100% (3840/3840), done.
Total 3840 (delta 2120), reused 3795 (delta 2096)

I tried git pull again after that , hang again.


My VM have access to the internet.

ping google.com                                                                       
PING google.com (172.217.12.142) 56(84) bytes of data.                                    
64 bytes from lga34s19-in-f14.1e100.net (172.217.12.142): icmp_seq=1 ttl=56 time=1.68 ms  
64 bytes from lga34s19-in-f14.1e100.net (172.217.12.142): icmp_seq=2 ttl=56 time=1.31 ms  
64 bytes from lga34s19-in-f14.1e100.net (172.217.12.142): icmp_seq=3 ttl=56 time=1.11 ms  
^C                                                                                        
--- google.com ping statistics ---                                                        
3 packets transmitted, 3 received, 0% packet loss, time 2003ms                            
rtt min/avg/max/mdev = 1.118/1.374/1.689/0.238 ms 

This is my

└── git config --list                                                                     
core.repositoryformatversion=0                                                            
core.filemode=true                                                                        
core.bare=false                                                                           
core.logallrefupdates=true                                                                
remote.origin.url=git@bitbucket.org:bb/cc.git                               
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*                                   
branch.master.remote=origin                                                               
branch.master.merge=refs/heads/master                                                     
remote.origin2.url=https://rajakannan@bitbucket.org/bb/cc.git 

What should I check ?


Update

I am not sure if it is related to my sshd_config or not, but

I tried

mkdir test
cd test


git clone git@bitbucket.bb/cc.git
Cloning into 'cc'...
|...

hang again ... even on clone


Update 2

Could this be a firewall issues ? I can't even ping bitbucket.org

ping bitbucket.org
PING bitbucket.org (18.205.93.2) 56(84) bytes of data.

... stuck ... freeze ... 

but I can ping google.com

ping google.com
PING google.com (172.217.9.238) 56(84) bytes of data.
64 bytes from lga34s11-in-f14.1e100.net (172.217.9.238): icmp_seq=1 ttl=56 time=1.59 ms
64 bytes from lga34s11-in-f14.1e100.net (172.217.9.238): icmp_seq=2 ttl=56 time=1.27 ms
^C64 bytes from lga34s11-in-f14.1e100.net (172.217.9.238): icmp_seq=3 ttl=56 time=1.05 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.052/1.307/1.596/0.227 ms
Community
  • 1
  • 1
code-8
  • 54,650
  • 106
  • 352
  • 604

1 Answers1

1

BitBucket status is clean, so the issue is not on the remote side.

You are cloning with an SSH URL git@bitbucket.org:bb/cc.git.
Try, for testing, an HTTPS URL: https://bitbucket.org/bb/cc.git

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250