Git interaction doesn't work when Secure Login is enabled


You are not able to use git from a remote to interact with Bitbucket if Secure Login for Bitbucket is enabled.


We're assuming you're communicating with your workstation via SSH with Bitbucket? If this is the case, you will need to add /scm/ to the field Context whitelist in the 2FA Configuration and use SSH to connect to the repositories.

Proceed the following steps:

  1. Log in as system administrator in Bitbucket and go to the 2FA Configuration.
  2. Enter /scm/ in the field Context whitelist.
  3. Save the configuration.

Now you can use git per SSH e.g. on the terminal.