Always seenig a mesage 'Using an account password for Git over HTTPS'

Anastasiia Boiko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2022

After every push I see this message in my terminal on Mac:

"

You are using an account password for Git over HTTPS.

Beginning March 1, 2022, users are required to use app passwords remote: for Git over HTTPS. To avoid any disruptions, change the password used in your Git client remote: to an app password. Note, these credentials may have been automatically stored in your Git client and/or a credential manager such as Git Credential Manager (GCM).'

A did made an app password and even installed Soursetree for that but I still see this ugly message. How to get rid of it?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2022

Hi @Anastasiia Boiko and welcome to the community.

If you are still seeing this message, it is possible that the account's password is stored in Keychain Access and used instead of the app password.

I would suggest trying the following:

1. First, run the following two commands on terminal

git config --system credential.helper
git config --global credential.helper

If you see in the output of either of them osxkeychain, this means that credentials are obtained from MacOS Keychain. Please let me know if you see different output.

2. If Keychain is used, remove any credentials for bitbucket.org from Keychain Access.

3. Then make a push from the terminal. You should get asked for a password if none is stored in Keychain Access, please provide the app password.

The app password should then get stored in Keychain Access, and the message shouldn't be visible on the next push.

Regarding SourceTree:
If you have added in SourceTree your Bitbucket account from Preferences > Accounts, I would suggest removing and re-adding your Bitbucket account using an app password instead of the password.

Please feel free to let me know how it goes and if you need any further assistance.

Kind regards,
Theodora

Anita Gagarina
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 26, 2022

I followed the steps and it did not work. After inserting the mentioned commands in the terminal, it did not display any keys. So I thought I did not have any keys in the Keychain Access. After pushing from the terminal, it displayed the same message in the big terminal..

Like gaidam likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 28, 2022

Hi @Anita Gagarina,

The commands I shared in my reply will not show any credentials, they will show which credential manager is used by Git (if there is one configured) or no output at all in case no credential manager is configured.

Could you please create a new question in community, provide in your question the following info (as your setup may be different), and we can look into your issue

1. Are you also using MacOS or a different operating system?
2. What output do you get if you run the commands I shared in my previous reply?
3. Do you get asked for a password when you push to Bitbucket repos?
4. Do you use any Git GUI client or do you only clone/pull/push from terminal?

Kind regards,
Theodora

Anita Gagarina
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2022

I have MacOS, I connect to BitBucket over HTTPS. I did not have GCM. This is how I solved the problem:

1. Install GCM:

brew tap microsoft/git
brew install --cask git-credential-manager-core

See details:  https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git

2. Create BitBucket app password. 

See steps: https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity

3.  When I push first time, GCM asked my password. And I did not see the remote message anymore

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2022

Hi Anita,

Thank you for your reply, it's good to hear that you figured this out.

Kind regards,
Theodora

1 vote
Curtis
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.
January 21, 2022

You have two options.

  • Create and use the App Password
  • Create and use an SSH Key

App Password

The App Password is needed when systems require 2-Factor authentication, to provide extra security to your accounts. Things like Git Clients, don't support these 2-Factor, so for them to connect, they need to be given a generated App Password, so that they can still connect.

It seems like you are using the official Git client in the terminal, and may have it cached within MacOS. This command should release it.

git config --unset credential.helper

 To create a App Password, follow these instructions.

SSH Key

The more secure method is to create an SSH key for authenticating to Bitbucket.

TAGS
AUG Leaders

Atlassian Community Events