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

remote: Too many invalid password attempts. Log in at to restore access.


I have seen other answers related to this but nothing has worked out for me.

I am using git command line on Linux and Mac OS, and whenever I try to push or pull changes, I get this error:

remote: Too many invalid password attempts. Log in at to restore access.

When I logout and login again to BitBucket, this issue gets resolved, for a while, and I can perform git remote operations.

Is this because somewhere(probably a CI/CD pipeline) I had provided my password in the past and it is still prompting with the same password so BitBucket blocks my account on repeated attempts? If so, is there a way to know where this request originates from?


5 answers

1 accepted

4 votes
Answer accepted

Hello Syed,

This issue does seem to be rather frustrating, especially when you’re needing to get work done and you have to step through the lockout process to complete your work. What I would suggest is to your review your session logs within Bitbucket cloud to see where logins are coming from.

If you wish to check your current account's active session, you can navigate to Avatar(bottom left) > Bitbucket Settings > Sessions

Source documentation: How to clear Bitbucket Cloud account's active session?

This will show where all of your logins are coming from. This should help in locating where your lockouts are coming from.

I hope this proves helpful and you’re able to find the cause of your account lockouts.

Stephen Sifers

Hi Stephen,

Thanks for the instructions, Sessions do give an idea about where the requests are coming from and can help in narrowing the problem down using the OS version and IP address.

Like # people like this

WORKAROUND: Currently the workaround I have done is to use SSH keys, which doesn't prompt me for the Bitbucket password so I dont have to logout & login to do remote operations.

The Sessions do help to investigate but it is my fault that I don't remember which servers I had provided my password on and also, I don't think I will be able to access those servers now anymore.

Like # people like this

I found this solution almost working. I was using Azure DevOps and I was getting that same error.

I created an App Password which clears the problem.

Like # people like this

This solution also doesn't work for me.  I have tried to set my account to use OAuth authentication, Basic Authentication, and Basic Authentication with App Passwords, Source Tree still refuses to accept my credentials.  Source Tree is now essentially useless to me. 

Does not help for me. I have tried logging out and back into bit bucket and sourcetree

Still getting "This is not a valid source path /url" and error box "Error: Remote: Too many invalid password attempts..."

I was working fine most of the day creating repos in bitbucket and cloning to local drive then I got these same errors and a huge list of local repos with error "repository moved or deleted"

For Source Tree:

Go to menu item
   1. Tools -> Options
   2. A options popup will appear, go to [Authentication] tab.
   3. Click on the account that raising issue and [Delete]
   4. Add again with new password

I signedup to bitbucked using gmail  account. I downloaded sourcetree and it got authorized and what ever. But when i try to clone code, it keeps giving me "too many attempts ..." error. I tried various things like (1) clearing passwords from windows credential manager, (2) reinstall source tree, logout and login back to bitbucket a dozen times in same browser, incognito, new browser etc. (3) Removed sourcetree from the authorized apps and go it re-authorized

As of this moment after 2 days no progress.

Try using the App Passwords.  Log into Bitbucket, click on your profile icon at the bottom-left corner, select "Personal Settings".  Once your settings page show up, select "App Passwords" under the "Access Management" menu.


Create a password for each instance of Source Tree.  Once completed, go back to Source Tree.  Access Tools > Options > Authentication > Accounts.

Select your account, edit it, reenter your credential by use "Basic" authentication.  Once prompted, enter the password you just created via App Passwords on the web.


I don't know why OAuth and my Atlassian accounts both fail with the latest version of Source Tree.  The only way I have been able to get it to work is by using the method described above.

Sometimes it still failed, I had to perform a clean uninstall and reinstall Source Tree.  I think it has something to do with the credential helper, but I wasn't willing to try which combination of configuration works.

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...

78 views 2 3
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