2F

2FAuth on Ubuntu 24.04 LTS

Azure Security

2FAuth, a self hosted vault for your two factor authentication accounts that stores the secrets and generates the one time codes in a browser.

Base
Hardened build
minimal ports, security patches applied at build time
Access
Unique credentials
generated on first boot, readable only by root
Verified
Boots working
services pass a health gate before release
Support
24/7, 365 days
by email and live chat, 24 hour response SLA

Overview

2FAuth is an open source, self hosted web app for managing two factor authentication accounts. It holds the shared secrets behind your TOTP, HOTP and Steam one time passwords, shows the live code with its countdown so you can copy it in one action, and reads the QR codes services hand out during enrolment so adding an account takes seconds. Accounts can be grouped, searched, reordered and given icons, and the whole collection can be exported and imported when you move. Because it runs in a browser on infrastructure you control, your second factors are no longer stranded on one handset: they survive a lost or replaced phone, and a small team can share one instance with separate accounts. A documented REST API with personal access tokens covers the same operations for automation, and signing in to 2FAuth itself can be protected with WebAuthn passkeys or single sign on.

Why the cloudimg image

Upstream hands ownership of a new instance to whoever registers on it first, so cloudimg closes that window before the port is ever public: the image ships with no accounts at all and self registration already switched off, and first boot creates the administrator with a random password written to a root only file. Nothing usable is baked in, so no two instances share a secret. First boot also mints a fresh application encryption key and fresh API token signing keys per instance, and stored secrets are encrypted at rest with that key. The vault itself lives on a dedicated data volume kept apart from the operating system disk, so a backup is a single directory and the secrets survive instance replacement. Every deployment ships fully patched, with a paired deploy guide and 24/7 cloudimg support.

Common uses

  • Keep your two factor codes in a vault you control instead of on one phone
  • Share second factors for shared service accounts across a small team
  • Recover access when a phone is lost, replaced or wiped

See it running

Real screenshots taken while testing this image against its deployment guide.

2FAuth on Ubuntu 24.04 LTS screenshot 1 2FAuth on Ubuntu 24.04 LTS screenshot 2 2FAuth on Ubuntu 24.04 LTS screenshot 3 2FAuth on Ubuntu 24.04 LTS screenshot 4