TOTP ((T)ime-based (O)ne-(T)ime (P)assword. is not working for any site that requires it, tried all major browsers, chrome, chormium, firefox. How to fix ?
Completed Troubleshooting:
-
$ timedatectl status
Local time: Tue 2022-10-25 14:29:32 +08
Universal time: Tue 2022-10-25 06:29:32 UTC
RTC time: Tue 2022-10-25 06:29:32
Time zone: Asia/Singapore (+08, +0800)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no .
2. - $ timedatectl set-local-rtc 1 --adjust-system-clock
- $ sudo timedatectl set-local-rtc 1
-
$ timedatectl status
Local time: Mon 2022-10-24 22:40:03 +08
Universal time: Mon 2022-10-24 14:40:03 UTC
RTC time: Mon 2022-10-24 22:40:04
Time zone: Asia/Singapore (+08, +0800)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
$ sudo timedatectl set-local-rtc 0
$ timedatectl set-local-rtc 0 --adjust-system-clock
-
$ timedatectl status
Local time: Mon 2022-10-24 22:50:04 +08
Universal time: Mon 2022-10-24 14:50:04 UTC
RTC time: Mon 2022-10-24 14:50:04
Time zone: Asia/Singapore (+08, +0800)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
After each command cleared cache on each browser and restarted browser and tested - problem persists. Suspect TOTP and OTP access system clock and operating system clock. That would likely cause 'System clock synchronized: no' to render TOTP incorrect. If TOTP does infact access system clock then how to change system clock so TOTP is correct ? What additional steps should be taken to find where os is reporting/collecting incorrect data to share with totp ?
This problem has been replicated on debian 10 and kali2019+2020. The only replicable solution has been full reinstall of os (reversion to earlier cloned copies of os prior to problem)