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

I can't install the repo from a remote bitbucket private repo. Althouth I have a admin access.

Md. Mainul Islam Faruqi January 26, 2022

I got this error.

error Command failed.

Exit code: 128

Command: git

Arguments: ls-remote --tags --heads ssh://git@github.com/ethereumjs/ethereumjs-abi.git

Directory: /Users/bernardo/Desktop/Africaswap/AfricaswapNFT

Output: Host key verification failed.

fatal: Could not read from remote repository.

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

1 answer

1 accepted

1 vote
Answer accepted
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2022

Hi @Md. Mainul Islam Faruqi 

Welcome to the community 🙂

For cloning repositories to local, you need to have atleast read access for the repository.

Now if you are using token for cloning the repo, make sure you have Correct scope set atleast to clone the repo!

And use the command

git clone https://username:token@bitbucket.org/workspace-name/repo-name.git

Try and let me know 

Thanks,

Pramodh

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2022

Seems like you are using GitHub repo link to download the repo!!

You should have added the SSH Key to you personal account and have the access

Like • Md. Mainul Islam Faruqi likes this
Md. Mainul Islam Faruqi January 27, 2022

Thank you very much for your valuable time. I have admin access to this repo.

git clone https://username:token@bitbucket.org/workspace-name/repo-name.git 

This is useful but I can not understand how can I get the token or which token should I use here. Please help me on that.

Norbert C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 28, 2022

Hi @Md. Mainul Islam Faruqi 

To clone the repository, for the token part, I'd like to recommend you to generate an app password by following the steps from our documentation: https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/

Please let us know how it goes.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Like • Md. Mainul Islam Faruqi likes this
Md. Mainul Islam Faruqi January 28, 2022

Hi @Norbert C  I created an app password. Please let me know the next step.

Md. Mainul Islam Faruqi January 30, 2022

Hi @Norbert C

I setup SSH exact step by step through docs, I need to run yarn cache clean. Then yarn install works.

Norbert C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2022

Hi @Md. Mainul Islam Faruqi

Thank you for your reply. In case you've created the app password, you can clone the repostiroy the following way:

git clone https://yourusername:yourapppassword@bitbucket.org/workspace-name/repo-name.git 

Please let us know how it goes.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events