clone issue

planzzz1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2023

I can't clone any my repositrory beacuse of the error:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://{username}@bitbucket.org/{workspace-id}/{repo-slug}.git
Output:
Error: remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/{workspace-id}/{repo-slug}.git'

I tryed to do it via Sourcetree and via Fork.

I see my remote repositoryes in Sourcetree but can't clone them. I even can create new repository on my PC via SourceTree and I see it on my Bitbucket after that. But after creation I can't interract with it on my PC.

Also I created new account on Bitbucket and created new repository there. But I have the same problem even on new account.

I think the problem is on my PC. Unfortunately I don't have acess to another PC.

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2023

Hi @planzzz1 and welcome to the community!

Do you get asked for a password when you try to clone the repo? If so, do you enter your account's password?

We have deprecated the use of account passwords for Git over HTTPS and API:

Your account's password can be used only for logging in to https://bitbucket.org/ from browser. If you want to clone, pull, push to a repo with HTTPS, you can generate an app password for your account and use that instead of a password (in combination with your username):

If you are using a credential manager, I would recommend clearing any saved credentials for bitbucket.org first, and then attempting the clone again with the app password.

Please feel free to let me know how it goes and if you need further assistance.

Just a heads up, I edited the clone URL to protect your privacy.

Kind regards,
Theodora

planzzz1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2023

Resolved :)

My co-worker who really good in such questions helped.

He did something like this:photo_2023-09-12_21-46-35.jpg

He said that some old key didn't replaced full. But I'm not totally sure because we did a lot of other not-working things before. It was the final detail which let me clone

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2023

Hi,

Thank you for the update, it's good to hear that this is resolved!

Based on the screenshot, it looks like you switched to SSH for authentication, which uses SSH keys instead of username and password.

If you use SSH to clone a repo, the URL for cloning is also different and looks like this:

git@bitbucket.org:{workspace-id}/{repo-slug}.git 

Please feel free to reach out if you need anything further!

Kind regards,
Theodora 

Suggest an answer

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

Atlassian Community Events