Demo 13: Two-Step Verification for Login
Start course
2h 8m

Take this beginner-level course on 'Atlassian BitBucket' to delve into the core principles and applied benefits for your software projects. This course, made up of 8 lectures and 14 demos, will expertly teach and explain how to perform Git-related tasks along with implementing and connecting BitBucket to third parties while always being aware of the various security options available.

This course would appeal to a range of job roles including software developers, build and release engineers and DevOps practitioners. All of the skills that you will gain from doing this course will yield a tangible dividend for the projects with your enterprise; allowing you to use, control and manage BitBucket to manage and maintain your software products.

Learning Objectives 

  • Understand the basic principles of version control as implemented using the Git protocol and
  • Learn how to effectively use BitBucket to manage and maintain your software projects
  • Assess the benefits of using BitBucket to manage and secure your software engineering assets
  • Recognize and explain how to perform all basic Git related tasks such as creating and cloning a repository, branching, and merging.
  • Study to implement and connect BitBucket with other 3rd party systems 
  • Be aware of the different security options available to secure your BitBucket setup
  • Be able to use, control, and manage BitBucket through either using the web-based administration console and/or by using a git client.

Intended Audience

  • Software Developers 
  • Software Build and Release Engineers
  • DevOps Practitioners


To be able to get the most out of this course we recommend having a basic understanding of:

  • Software development and the software development life cycle
  • Software development tools
  • Version control and associated workflows

Related Training Content

After completing this course we recommend taking the 'Introduction to Continuous Integration' Course

To discover more content like this, you will find all of our training in the Cloud Academy Content Training Library.


Welcome back. In this demonstration, we're going to set up two-step verification or second factor auth. This will ensure when we log into BitBucket that if our password has been captured, that whoever uses it also requires to give in the position a one-time password or OTP. So let's begin the configuration. So we need to go to the account level settings for our BitBucket account. And the first thing we'll do is under security, we'll navigate into two-step verification. Now, the first time we'll go in, you'll notice that we can't actually do the provisioning for two-step verification. The reason being is we need an account level SSH key. So let's go and set that up first. So go into SSH keys. We're going to add key. We'll navigate into our terminal. And again, we'll run SSH keygen. And this time, we'll create a key code BitBucket. Now, passwords. Again that's completed. So we're now at the local agent. And listing the identities, we can see that it's been added. We'll now get a copy of the public portion of the key pin. And we'll point it out to pbcopy to get it into our clipboard.

Back into BitBucket terminal, we can paste the public key there and we'll call it BitBucket and we'll add the key. Okay so we've now got an account level SSH key. From here, we jump into the two-step verification process and this time, we get presented with our QR code. So jumping on our logo and device, we'll then scan this code. I've just scanned it, it's on my mobile device and my virtual second factor auth application. And I can complete the enrollment by taking an OTP which has just been generated on my phone and adding it back into the input here. Level two-step verification and we're almost done. So I need to jump into our email and we need to complete the two-step verification setup by clicking the enable two-step verification link. Okay so that's now completed the setup as per the enabled state is here. So the tea now is to log out and log back in. Okay so we're going to log back in. We get challenged for a second factor auth. So we'll add it in. Click verify and we're back in. So that's 2SV or second factor auth. Okay that complete this demo. Go ahead and close it and we'll see you shortly in the next one.

About the Author
Learning Paths

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).