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

Authentication and authorization from my local

ashwinvodnala July 30, 2021

Hi Team,

I am using Cloud version of Bitbucket and having issues cloning git hub repo from our project facing the below error.

Password for 'https://username@bitbucket.org': 

remote: Invalid username or password

fatal: Authentication failed for 'https://bitbucket.org/myorg/1-org.git/'

 

I am on MacOS and flowed the below document for setting it up.

https://www.atlassian.com/git/tutorials/install-git#install-the-git-credential-osx

Please suggest if there is any other way to authenticate from my local.

Thanks

1 answer

0 votes
Claudio Gonzalez
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.
July 30, 2021

Hi @ashwinvodnala ,

I use the ssh-key authentication.

Please follow the next steps to MacOS.

1. Open terminal and execute "ssh-keygen" (only press "enter" in each step)

2. execute ~/.ssh/id_rsa.pub then copy all text from "ssh-rsa AAAAB3N...."

3. Open BitBucket and select "Personal Settings" and after select "SSH Keys"

Screen Shot 2021-07-30 at 16.03.20.png

4. Enter the "Label" and "Key" from step 2

Screen Shot 2021-07-30 at 16.04.09.png

5. Return to terminal on MacOS and execute

5.1. eval $(ssh-agent)

5.2 ssh-add ~/.ssh/id_rsa.pub

6. for check execute "ssh -T git@bitbucket.org"

 

After the you can use all commands git only with "git@bitbucket.org:<path_repo>/<repo>.git

 

Please, any doubt you can read: https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events