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

clone bitbucket repository to Ubuntu 18.04 using command line failed

changwenx July 7, 2022

Hi

I tried to use the command  below to clone a repository to an Ubuntu 18.04 machine

git clone https://changwenx@bitbucket.org/keelerglobal/ion-build.git

It failed as below:

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://changwenx@bitbucket.org/keelerglobal/ion-build.git/'

How can I sort out this issue?

Thanks

 

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2022

Hi @changwenx,

Thank you for reaching out to the community.

Would it be possible for you to confirm if you're already using an App password when you tried cloning?

If not yet, could you try generating an App password and use it as your password credential when you clone?
If you're already using an App password, could you try clearing your Git credentials related to Bitbucket Cloud and try to clone again?

Hope it helps and let me know how it goes.

Regards,
Mark C

changwenx July 11, 2022

Hi Mark C,

I am using APP password in other computers. It works fine. 

The case is that I need to clone a bitbucket repository  to a headless Ubuntu 18.04 where no git app installed.

What I have done at this moment after failed to clone, I downloaded the repository from my computer and transferred to the headless device. It works but I thought it is better to clone the repository. 

It seems clone a bitbucket repository from command line (without app) is NOT working anymore?

Kind regards,

 

 

Changwen

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2022

Hi @changwenx

I do believe the Git application is required for you to clone a repository in any OS environment.

Btw, would it be possible for you to confirm if you're referring to the App password generated from your Bitbucket Cloud account?

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events