Authentication failed while cloning repository from bit bucket

Priya Sharma December 19, 2017

I am getting following authentication failed error while cloning repo from bit bucket.

$ git clone https://sharpriy@bitbucket.org/humense-team/k2ls.git
  Cloning into 'k2ls'...
  Password for 'https://sharpriy@bitbucket.org':
  remote: Invalid username or password. If you log in via a third party service you   must ensure you have an account password set in your account profile.
 fatal: Authentication failed for 'https://sharpriy@bitbucket.org/humense-team/k2ls.git/'

I have given gmail password for authentication since i use to login to atlassian account using 'log in with gmail' option.

I have also added SSH key to bit bucket account and configured username and email address using following commands

git config --global user.name <username>

git config --global user.email <email address>

 

Please help me to resolve this issue

1 answer

1 accepted

7 votes
Answer accepted
edwin
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.
December 20, 2017

Hi Priya,

For SSH try using

git clone git@bitbucket.org/humense-team/k2ls.git

 For username and password the error shows

If you log in via a third party service you must ensure you have an account password set in your account profile.

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 20, 2017

That command needs one small formatting fix:

git clone git@bitbucket.org:humense-team/k2ls.git
Like # people like this
edwin
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.
December 20, 2017

Thanks James!

Priya Sharma December 20, 2017

This worked!!!

Thank you very much Edwin and James.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events