Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication failed for git clone on 9.6.3

mreanaa
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!
July 2, 2025

I'm experiencing an issue with my local Bitbucket instance.

I cannot interact with it through git; it always tells me Authentication failed.

I tried all types of tokens, tried with my password, but nothing works. I'm using the latest Bitbucket version 9.6.4 on Ubuntu 22.

Any idea what might cause this? 

I'm using

git clone http://192.168.1.222:7990/scm/al/my-repo.git Cloning into 'my-repo'... Username for 'http://192.168.1.222:7990': alex Password for 'http://alex@192.168.1.222:7990': fatal: Authentication failed for 'http://192.168.1.222:7990/scm/al/my-repo.git/'

API also fails

curl -u alex:BBDC-NzIwNTk1MTg5OTg0OqRy0XMdzB0WUYcJZAneVDqfKdN9 http://192.168.1.222:7990/rest/api/latest/resource/path
{"errors":[{"message":"Authentication failed. Please check your credentials and try again.","exceptionName":"com.atlassian.bitbucket.auth.IncorrectPasswordAuthenticationException"}]}

 

I'm basically just trying the commands on the new repo page, before initialization.2025-07-02 22_55_50-my repo - Bitbucket.png

 

1 answer

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
July 30, 2025

Hi @mreanaa and welcome,

did u try to setup your git locally with username/email?

To set your global username/email configuration:

  1. Open the command line.

  2. Set your username:
    git config --global user.name "FIRST_NAME LAST_NAME"

  3. Set your email address:
    git config --global user.email "MY_NAME@example.com"

 

After doing that try to clone your repo again. Your email should be the same as per your user on bitbucket side.

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events