I have an ubuntu server that I need to git pull on to fetch the data from a bitbucket repo. Unfortunately, git pull origin master sometimes works and sometimes hangs forever.
GIT_SSH_COMMAND="ssh -vv" git pull --ipv4 origin master
The public key authenticates to bitbucket but the connection hangs.
Here are the relevant debug messages after authentication
debug2: channel 0: request exec confirm 1 debug1: pledge: fork debug2: channel_input_open_confirmation: channel 0: callback done debug2: channel 0: open confirm rwindow 2097152 rmax 32768 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 debug2: channel 0: rcvd adjust 317
I tried hardcoding the ip address of bitbucket.org for dns, I tried changing the name server to google (8.8.8.8).
How can I further debug and understand what is going wrong?