---
title: Two-factor authentication coming to Ubuntu One
description: This change is coming in the next few weeks, so keep your eyes peeled
  for instructions on how to enable 2FA for your account. With a reliable backup mode
  of authentication, lockouts should be a thing of the past.
url: https://canonical.com/blog/two-factor-authentication-coming-to-ubuntu-one
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Holly Hall](https://canonical.com/blog/author/hollyhall "More about Holly Hall")

17 June 2021

# Two-factor authentication coming to Ubuntu One

[2FA](https://canonical.com/blog/tag/2fa)
[Authentication](https://canonical.com/blog/tag/authentication)
[Security](https://canonical.com/blog/tag/security)
[SSO](https://canonical.com/blog/tag/sso)
[Ubuntu One](https://canonical.com/blog/tag/ubuntu-one)

---

Share the article

## What is 2-factor authentication (2FA)?

Two factor authentication (2FA) increases your account security further than just using a username and password. In addition to a password (the first factor), you need another factor to access your account. A great example to demonstrate this is when you withdraw money from an ATM. To access your bank account you need both your physical bank card and to know your PIN number. These are the two factors you need to withdraw money = 2 factor authentication!

Common ways to provide this extra level of security are a specific application on your phone or computer, a physical security key/USB (Yubikey, for example), or a smart card. By using more than one of these factors, you can greatly increase the security of your account or system.

## 2-factor authentication and Ubuntu One SSO

Ubuntu One Single Sign-On (SSO) has supported 2FA since 2014. The ubiquitous OATH (Initiative for Open Authentication) protocol is supported, using open standards to promote stronger security and authentication. Using open standards means that a wide range of devices and applications can be used as a second factor. This includes phone and desktop applications like [1Password](https://snapcraft.io/1password), [Authy](https://snapcraft.io/authy), [Authenticator](https://snapcraft.io/authenticator) and countless more. This also includes hardware devices from [Yubikey](https://snapcraft.io/yubioath-desktop), Feitian and others, and even some terminal applications such as [oathtool](http://manpages.ubuntu.com/manpages/trusty/man1/oathtool.1.html). Thanks to OATH’s simplicity, even a list of numeric codes can be used as a valid device. These codes could, for example, be printed on a sheet of paper and stored securely for use in an emergency or as a backup device

The basics of the workflow, mechanics and code in Ubuntu One SSO  are solid, proven, and used by hundreds of people every day. Despite the above, 2FA in Ubuntu One SSO has remained in closed beta for more than 7 years. The one thing that was lacking was a comprehensive code recovery experience to prevent lockouts

### Why code recovery?

A downside of 2-factor authentication is that, should the code-generating device(s) be lost, misplaced, broken or misconfigured, the user will be unable to enter a 2-factor code and thus will be denied access to their account.

As 2FA entered beta testing, it was primarily used by Canonical employees. In this situation, the company has verified mechanisms for identity validation and device reset. However, as the pool of testers expanded to include security-minded, community members and external users, we realized it wasn’t as easy to provide an analogous recovery mechanism. Since we don’t have any verifiable information identifying the user or linking them to their account, there was no way to establish ownership of that account. Despite an email address being a reasonable method of linking a user to their account, 2FA operates under the assumption that an email address could be compromised. As a result, in practice, users who get locked out of 2FA effectively lose their accounts.

## What are we doing about this?

After many years in beta, we have created a comprehensive code recovery experience. Following this, we are happy to announce that we will be implementing 2FA for all Ubuntu One accounts. This change is coming in the next few weeks, so keep your eyes peeled for instructions on how to enable 2FA for your account. With a reliable backup mode of authentication, lockouts should be a thing of the past.

In the meantime, if you want to read more about secure IoT and Desktop solutions, check out the links below!

* [Secure IoT device management](https://ubuntu.com/engage/iot-device-management-whitepaper)
* [Optimised authentication methods for Ubuntu Desktop](https://ubuntu.com/engage/desktop-authentication-whitepaper)
* [Securing IoT device data against physical access](https://ubuntu.com/engage/iot-disk-encryption)

Photo by [Alberto Barrera](https://unsplash.com/@abarro?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText), taken at Lago de Garda, Italy.

[Get in touch

Interested in running Ubuntu in your organization?](https://ubuntu.com/about/contact-us/form)

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

In submitting this form, I confirm that I have read and agree to
[Canonical's Privacy Notice](https://canonical.com/legal/data-privacy/contact)
and [Privacy Policy](https://canonical.com/legal/data-privacy).

Sign up

## Share on

---

## Related posts

[### New Edge archive offers opt-in AI-driven security remediation and backports](https://canonical.com/blog/new-edge-archive-offers-opt-in-ai-driven-security-remediation-and-backports)

The open source ecosystem faces an unprecedented wave of vulnerability reports and attacks, driven by AI agents. Our security teams have already shipped double the number of...

[Canonical](https://canonical.com/blog/author/canonical)

12 November 2026

[### How to build, maintain, and secure infrastructure for AI factories](https://canonical.com/blog/how-to-build-maintain-and-secure-infrastructure-for-ai-factories)

Moving AI into production creates a long-term maintenance obligation for the software behind it. GPU infrastructure can remain in service across several generations of models...

[Ijlal Loutfi](https://canonical.com/blog/author/ijlal-loutfi)

2 November 2026

[### Why embargoes matter for open source security](https://canonical.com/blog/why-embargoes-matter-for-open-source-security)

Open source is built on a foundation of transparency, collaboration, and speed. We share code, we share ideas, and together, we build better software. But when it comes to...

[Rajan Patel](https://canonical.com/blog/author/rajanpatel927)

30 October 2026

[### Securing open source software dependencies in the public cloud](https://canonical.com/blog/securing-open-source-software-dependencies-in-the-public-cloud)

Building stable and secure software requires understanding build systems and having a plan for vulnerabilities in your software dependencies.

[Aaron Whitehouse](https://canonical.com/blog/author/aaron-whitehouse)

5 October 2026
