Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Erroring out while cloning bitbucket repository

Abhinav Shukla October 6, 2022

Hi,

I have created the ssh key using ed25519 algorithm and added the key in bitbucket account but while cloning the repository I am getting below error. 

[abhinav.shukla@RA-INT-HIE-DEV-UCDB01 riayati]$ sudo git clone ssh://git@ra-hie-bbk01.***.intra:7999/~abhinav.shukla/dev-test.git
[sudo] password for abhinav.shukla:
Cloning into 'dev-test'...
ssh: connect to host ra-hie-bbk01.***.intra port 7999: Connection timed out
fatal: Could not read from remote repository.

Any suggestions? 

1 answer

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2022

Connection time out usually indicates on a big repo or network issues, so my first recommendation would be to create a new empty repo and see if you can clone that without an issue.

If you have an issue cloning an empty repo, it's most likely a network/configuration issue.

If you don't have an issue with an empty repo, try cloning with --depth 1 and/or with --filter=blob:none.

I recommend going over the flags of git clone to try and find which one suit you best.

 

Abhinav Shukla October 7, 2022

Yes. I am cloning an empty repo, looks like network/key configuration issue. 

I am trying to set up ssh connection on two different servers like Bitbucket is installed in one server and trying to clone the repository in other servers. 

Do you have any suggestions for this scenario? 

Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 7, 2022

Start with this article: https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/ and if you still having issues, try this one: https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-ssh-issues/

These two should help you establish an ssh connection into BitBucket.

Also, try connecting first from a local dev machine. It's usually easier to debug and sometimes even to install software on dev machine rather than on a server.

Abhinav Shukla October 7, 2022

Thank you. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events