Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1064  / 2 Years ago, sat, may 14, 2022, 4:25:24

On Ubuntu 22.04.2, I would be glad to ear about a native and secure way to generate TOTP codes for using in any given application which needs 2FA.


Do you know an open-source way of doing that directly on an Ubuntu computer?


All tutorial I can find are based on the "mobile app" way (e.g. using Google Authenticator), which I cannot use because I don't have any other mobile device than a laptop.


More From » 22.04

 Answers
4

KeepassXC


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


  1. Once installed you have to create a database to keep the passwords.

  2. Then you have to create a new entry with the username and password.
    It does not allow creating TOPT at this step.

  3. 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 drove 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.


Authy


Authy is another authentication app for mobiles, tablets, and desktops. there is even a Snap version of it.


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


[#12] Sunday, May 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;