Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git clone failed to fetch repository from Bitbucket.

Pavankumar February 15, 2024

verbose log shows connection established:

GIT_SSH_COMMAND="ssh -vvv" git clone --depth=1 ssh://git@bitbucket.org/gop/tests.git
Cloning into 'tests'...
OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /home/lava/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/lava/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/lava/.ssh/known_hosts2'
debug2: resolving "bitbucket.org" port 22
debug3: resolve_host: lookup bitbucket.org:22
debug3: ssh_connect_direct: entering
debug1: Connecting to bitbucket.org [10.122.xx.xxx] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: Connection established.
debug1: identity file /home/lava/.ssh/id_rsa type 0
debug1: identity file /home/lava/.ssh/id_rsa-cert type -1
debug1: identity file /home/lava/.ssh/id_ecdsa type -1
debug1: identity file /home/lava/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/lava/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/lava/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/lava/.ssh/id_ed25519 type -1
debug1: identity file /home/lava/.ssh/id_ed25519-cert type -1
debug1: identity file /home/lava/.ssh/id_ed25519_sk type -1
debug1: identity file /home/lava/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/lava/.ssh/id_xmss type -1
debug1: identity file /home/lava/.ssh/id_xmss-cert type -1
debug1: identity file /home/lava/.ssh/id_dsa type -1
debug1: identity file /home/lava/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u1

moves to 

kex_exchange_identification: read: Connection timed out

banner exchange: Connection to 10.122.xx.xxx port 22: Connection timed out

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Each time it tries to fetch code from different IP address.

Any suggestion that i can en-route from the same IP address

1 answer

1 vote
Pavankumar February 20, 2024

Try adding an IP Address with domain name  in /etc/hosts file

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events