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,369,460
Community Members
 
Community Events
168
Community Groups

App Password not working when checkin to BitBucket via command line...

Ravi K I'm New Here Aug 17, 2022

Hello friends,

I am new to BitBucket and CI/CD as a platform. Set up a new BitBucket account, added SSH keys and also created the APP Password.

As a learning process, tried to clone a git repository to local machine (Linux Kernel 5.15) and use this code to checkin to Bitbucket and setup pipelines. This is my current status on the learning.

Repository with same name as folder name created on BitBucket.

On local linux machine, following commands were issued:

git add *

git commit -m "initial"

git remote set-url origin https://<username>:<apppassword>@bitbucket.org/skillshare-mastering-pipelines.git

git branch -v

git push

AFTER git push, it shows the following error:

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/skillshare-mastering-pipelines.git/'

 

WHATEVER I do, its the same error. APP Password creation does not seem to work.

The URL to include APP Password also does not seem to work.

 

Can you please help ?

 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Ravi K ,

If you added SSH keys, why don't you use SSH remote URL? The remote URL looks like git@bitbucket.org:your_space/skillshare-mastering-pipelines.git

Ravi K I'm New Here Aug 18, 2022

Thank you, Thuan_Do Dang. Your suggestion worked for me. 

Using the following syntax: 

git push git@bitbucket.org:<workspaceid>/<repository_name>.git

Like Thuan_ Do Dang likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events