How to enable Two-factor authentication (2FA) for the CubeBackup console login.


It is always important to do everything you can to improve your online account security. Two-factor authentication, also referred to as 2FA, provides an additional level of protection.

Enable 2FA for the CubeBackup login

  1. Log (or SSH) into your backup server.
  2. Open the configuration file config.toml using a text editor.

    Note:
    Starting with version 4.7, the configuration file is located at <installation directory>/etc/config.toml for fresh installations of CubeBackup. For installations upgraded through the console, or versions prior to 4.7, the configuration file is still located at <installation directory>/bin/config.toml.
         On Windows, the default installation directory is located at c:\Program Files\CubeBackup4.
         On Linux, the default installation directory is located at /opt/cubebackup.

  3. In the [Web] section and change the value of “TwoFactorAuthEnabled” to true. If your config.toml file doesn’t contain an “TwoFactorAuthEnabled” line, you will need to create one.

    [Web]
    ...
    TwoFactorAuthEnabled = true
    ...
  4. Restart the CubeBackup service so the changes will take effect.
    On Linux:

    sudo /opt/cubebackup/bin/cbsrv restart

    On Windows:
    Enter services.msc in the command line, then in the Services list that pops up, right-click the CubeBackup Service entry, and select Restart.
    On Docker:

    sudo docker restart <container-name>

2FA Login

After two-factor authentication has been enabled, an authentication code will be generated and sent to you by email as part of the CubeBackup console login process. You will need to check your mailbox and paste the authentication code into the dialog box that pops up.