Bitbucket Authentication Failed on Git Push

Share
Ongoing All Updated November 13, 2026Based on 4 user reportsHow we research

Quick answer

git push or clone over HTTPS fails with 'Authentication failed' on Bitbucket. Usually a stale cached password or app password; use an API token and clear the saved credential.

Most likely fix: Remove the cached credential

How to fix it

Try these in order — the most common fix is first.

  1. 1. Remove the cached credential

    1. macOS: Keychain Access, search bitbucket, delete
    2. Windows: Credential Manager > Windows Credentials, remove git:https://bitbucket.org
    3. Run git push again and enter a fresh API token
    Did this fix it?
  2. 2. Use an API token with the right scopes

    1. Create it under Atlassian account settings > Security > API tokens with scopes
    2. Include repository read and write permissions
    3. Check the expiry date you chose
    Did this fix it?
  3. 3. Switch the remote to SSH

    1. git remote set-url origin git@bitbucket.org:<workspace>/<repo>.git
    2. Add your public key under Personal settings > SSH keys
    Did this fix it?
  4. 4. Check 2FA and account

    1. Confirm you are on the account that has access to the workspace and repository
    Did this fix it?

Symptoms

remote: Invalid credentials, fatal: Authentication failed for https://bitbucket.org/..., or the credential prompt keeps returning.

Why it happens

  • Old app password cached in the OS credential store
  • Password login no longer accepted for git
  • API token missing repository read/write scope
  • Token expired
  • Wrong username format

This guide also covers

  • bitbucket authentication failed
  • bitbucket git push authentication failed
  • bitbucket invalid credentials

Still not working?

If Bitbucket keeps failing, you're not alone. See every Bitbucket problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other Bitbucket errors