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

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

Ravi K August 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
Thuan_ Do Dang
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.
August 17, 2022

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 August 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
AUG Leaders

Atlassian Community Events