So basically what title says.

Im using 2FA with google authenticator for multiple accounts. What if my phone gets stolen? Can I have some kind of backup? Or maybe sync with some self hosted service?

Bonus question: what 2FA should I use instead of google?

  • Max_Power@feddit.de
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    7 months ago

    There are many forms of 2FA. I’m guessing you mean TOTPs oh you actually wrote that, my bad lol.

    I copy the keys from Aegis to KeePassXC. KeyPassXC’s database is part of my regular backup. This way I have two apps generating the same TOTPs.

    • rambos@lemm.eeOP
      link
      fedilink
      arrow-up
      7
      ·
      7 months ago

      I was afraid of using keypassxc since I dont trust myself, but using it as a backup sounds like amazing solution. Thank you

    • ebits21@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      7 months ago

      Personally I recommend just using KeePassXC and a KeePass app (I use KeePassium on iPhone).

      You always have access to all your data that way. No company is monitoring you. A lot of apps make it very difficult to backup!

      My totp database is in the cloud for syncing but needs a key file I don’t keep in the cloud (and a password). My passwords are entirely separate.

  • rambos@lemm.eeOP
    link
    fedilink
    arrow-up
    14
    ·
    7 months ago

    Thank you all for tips. I got Aegis and backing it up to my selfhosted nextcloud. I will also keep google app in use for now, but I might get keypassxc or vaultwarden in the future

    Cheers

    • Trones@ythreektech.com
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      As a user of Nextcloud, Aegis, and Vaultwarden, I can say it’s a great set of tools. I don’t know how I ever got by without Bitwarden/Vaultwarden.

  • Dave@lemmy.nz
    link
    fedilink
    arrow-up
    10
    ·
    7 months ago

    Aegis is a free open source TOTP 2FA app like Google Authenticator, and available on both F-Droid and Google Play. You should be able to export from Google Authenticator and import into Aegis.

    • illi@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 months ago

      You should be able to export from Google Authenticator and import into Aegis.

      If there is a way, I was unable to find it

      • Dave@lemmy.nz
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        7 months ago

        For one, Aegis is more well known. Aegis has 6k+ stars where FreeOTP+ has about 500. This doesn’t mean it’s better, just that people are more likely to recommend it.

        Aegis also has more features, and can import from many different authenticator apps (though as many don’t allow exports, this may require technical knowledge to get the database and feed it in). If you have root then Aegis can pull directly from the other apps.

        Aegis claims they are better than FreeOTP because the encrypt passwords at rest.

        One big difference is FreeOTP+ lets you not have to enter a pin/password to see the codes while Aegis you need to enter a pin, password, or biometric to see your codes.

        • 𝕸𝖔𝖘𝖘@infosec.pub
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 months ago

          Popularity aside, you sold me on the import compatibility. FreeOTP+ can export to other FreeOTP+ installations, but I’ve had issues with exporting to other apps. I had to manually import using the secrets displayed within FreeOTP+. The encryption sold me. I will be migrating to Aegis. I haven’t heard of it until this post, and have been using FreeOTP+ sans encryption.

  • akilou@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    ·
    7 months ago

    I use Authy and am logged in on multiple devices so if I lose my phone I can still access the 2FA on my laptop. Then log back into the new phone using the laptop.

  • s3rvant@kbin.social
    link
    fedilink
    arrow-up
    5
    ·
    7 months ago

    I use Aegis like several others here and then backup my codes to a Cryptomator vault which I can then sync online for cloud backup

  • m0yP@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    7 months ago

    Aegis or Ente Auth for Android. Backup your databases in your cloud of choice. Do not use Google Authenticator.

  • Zerush@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    I prefer an authentication code, which I can save on a pendrive or, if not, a second email. I never use 2FA with a phone number, precisely because a phone is never secure and is also a privacy hole. It’s enough that they know my email, it’s not necessary that they also know my phone number.

  • elgordio@kbin.social
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    7 months ago

    When enrolling with the 2FA take a screenshot of the QR code, print it and add it to wherever you keep your secure documents. The QR code is your private key, just scan it again to add a new device if you lose your original.

    Obviously you need to keep the code secure!

    • shortly2139@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      Just a heads up. There is no way to export from authy. So if you ever want to switch apps for whatever reason, lets say they were bought by big evil corp., then you would have to go and regenerate all your keys. Where as a good app would let you export and import from anywhere

  • Cotillion@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    Use Aegis on android or 2FAS on iOS. And just backup your seed on hdd/usb stick. Dont upload on cloud.

    • SamsonSeinfelder@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      IOS has a 2FA feature included in the key chain (passwords) settings. No need for a third party app. If you backup passwords via icloud, you are already set.

  • peasntanks@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    edit-2
    7 months ago

    You could use a python script with oathtool copied onto each of your devices. This is not a good suggestion.