How does it work?
The first factor for authentication is the password.
You can activate 2-factor authentication in the settings of your HiDrive account (https://hidrive.ionos.com > Settings > Account).
After you have activated the service, you will receive a QR code, which you can scan with the app and generate a one-time password. Enter the one-time password from the app into the existing field and confirm with Verify code.
Finally, the setup is confirmed and you can use HiDrive with 2-factor authentication right away.
When using the HiDrive storage using a protocol (such as HTTP), you will need to append the token generated for 2-factor authentication by the authenticator app with a colon (:) suffix after the required password.
Example: mypasswordislongandcomplex:123456 (123456 is the token)
If the protocol used (except SMB) requests the user name and password, the token remains valid for at least 60 minutes. This is how long a valid token is stored in the cache of the HiDrive infrastructure. After 60 minutes of inactivity, the token becomes invalid. However, the connection may have to be re-authenticated much earlier because the client used (such as WinSCP or FileZilla) disconnects the connection after only a few minutes of inactivity.