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

Access denied when migrating repo

Admin Admin January 20, 2022

Hello,

 i'm in the process of setting up Jira and migrating repos to BB.

What i did:

1. cloned a repo to a local drive

2. git remote set-url origin https://keytophoto-admin@bitbucket.org/xxx/xxx.git

3. git push --all

the last command returns:

```
remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/xxx/xxx.git/'
```

The user in atlassian is "admin" and it was created using google authentication.

 

questions:

1. why the bitbucket user is "keytophoto-admin" and not "admin"?

2. what the password should be? or where do i change the password?

 

1 answer

0 votes
Mahesh Shinde
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.
January 20, 2022

Hi Admin,

In bitbucket cloud, you have to create user manually there is no as such default username.

If you want to reset username password then please try this link:  https://bitbucket.org/account/password/reset/ and make sure the email ID is link with username so you can get reset password link on that mail ID.

Admin Admin January 21, 2022

Thank you for the reply.

But i think the authentication problem is due to authentication used when the Atlassian account was created.

1. create an Atlassian account authenticating with Google.

2. create a BB repo.

3. git clone over https - results in the "Authentication failed " message.

 

no ssh keys is been used atm.

Admin Admin January 24, 2022

adding SSH keys and setting up .ssh/config solved the auth issue

Suggest an answer

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

Atlassian Community Events