Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,621
Community Members
 
Community Events
165
Community Groups

Authentication and authorization from my local

Edited

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

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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,158 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you