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
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"
4. Enter the "Label" and "Key" from step 2
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.