Stash Git error "fatal: remote error: CAPTCHA required"

Nathan Fig picture Nathan Fig · Jun 18, 2015 · Viewed 59.2k times · Source

Attempting to pull from my Stash project, using the following commands:

$ git remote add origin https://[email protected]/scm/~username/project.git
$ git pull origin develop

I'm prompted for my password, which I enter and then get the following error:

Your Stash account has been marked as requiring a CAPTCHA to be solved before you may login again. This is typically caused by too many attempts to login with an incorrect password. The required CAPTCHA prevents your SCM client from accessing Stash until it is solved, even if you enter your password correctly. If you are currently logged in to Stash via a browser you may need to logout and then log back in in order to clear the CAPTCHA.

Logging out and back in again does not help. How do I fix this?

Answer

chjortlund picture chjortlund · Aug 30, 2017

You might have a session to BitBucket open in a browser, that gives the impression that everything is fine. Simply logout and in again, when logging in you need to solve a CAPTCHA, after that you are good to go.