Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

why does it say invalid username and password when I try to import the repository?

I ma trying to import a repo but it says invalid username and password. please help me resolve it.

1 answer

0 votes

Hi @Jaspreet Kaur and welcome to the community.

Are you trying to import a repo to Bitbucket Cloud ( or to a Bitbucket Server (self-hosted) instance?

The message indicates that authentication does not succeed with the username + password you have provided.

The first thing I would suggest checking is whether you can log in with this username and password to the website of the hosting provider where the repo is hosted now. I would also suggest that you try cloning the repo from your computer/laptop with these credentials and see if this succeeds. This is to double check whether the credentials are correct and if they work when cloning to your local machine.

One possibility that I can think of is that if you have 2FA enabled in the account of the hosting provider where the repo is hosted now, you may need to use something like an app password or access token, instead of the account's password. Can you check whether there is an option to generate something like this, and try using that instead of a password when you import the repo?

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

118 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you