This is a Linux native open-source password manager available from the Ubuntu repository. there is also a PPA if you want the latest.
Install keepassXC either from the Ubuntu store or from the terminal. Open a terminal and enter:
sudo apt install keepassxc
- Once installed you have to create a database to keep the passwords.
- Then you have to create a new entry with the username and password.
It does not allow creating TOPT at this step.
- Finally, once you select the newly created entry (username and
password) you can use the menu on top and select Entries >
TOTP... > Set up TOTP.
Security
KeepassXC database is password protected by default. That is, to use a password (and TOTP) stored in the database, you have to open the KeepassXC app and enter a password to open the database. Optionally you may use a file (stored in an USB drive) for additional security in addition to the password. That is, if the specific file is not there in the USB drive or if the specific USB drive is not plugged in, no one can open the KeepassXC database and access the TOTPs or passwords.
Caveat
You may have to begin the set up of TOTP again at the web pages that offer 2FA of this kind. For example, you may have to momentarily disable 2FA in your Google account, and set it up again to get a new QR code. Most web pages do not show the secret key or the corresponding QR code once the 2FA is setup. If you currently use an authentication app on the phone, the TOTP numbers generated by that app would become obsolete if you do the 2FA setup in the web page again.
On the plus side, KeeppassXC can generate the QR codes for each TOTP once it is set up. That is, you can scan the QR code generated by KeepassXC using your phone's authentication app to update it.
Browser Extensions
You may want to use the Chrome or Firefox extension for KeepassXC. This allows you to copy and paste userID, password, and TOTP (if available) with a couple of clicks.
The desktop and snap version was deprecated and it is not longer available.
Authy is another authentication app for mobiles, and tablets.
Unlike KeeppassXC, Authy does not manage passwords. It is only for generating TOTP. On the plus side, if you use Authy on your mobile or tablet, you can keep your TOTP synced between all the devices including the desktop. You have to create an Authy account to keep the Authy apps in every device in sync.
Hope this helps