5 ms·
Set the clock to the correct time. One of the inputs to the algorithm used to generate the authenticator codes (for TOTP codes) is the current time of day when
by pwg 6y ago
Set the clock to the correct time.
One of the inputs to the algorithm used to generate the authenticator codes (for TOTP codes) is the current time of day when a code is requested.
So you need to get your clock set to the correct time of day.
- paulpauper 6y agohow do I find that? the source code is huge. is there a website that gives the offical time
- LinuxBender 6y agoWhich distro of Linux, and do you have ntpd or Chrony installed? If ntp, try manually setting the time with ntpdate -b4 -p4 0.pool.ntp.org If that succeeds, then update the hardware clock hwclock --systohc This is just to get your auth working. You will need to properly configure either Chrony or ntpd and ensure the service is configured to start. Commands and configuration files vary by OS distro. There are many documents specific to each distro on how to configure these daemons.
- paulpauper 6y agotails linux
- LinuxBender 6y agoIt appears they prefer HTP [1] and assume you do not have direct internet access. They use Tor? You will have to set up HTP for time sync. Out of curiosity, what is it like doing everything through Tor? Slow? Do you get blocked in most places? [1] - https://tails.boum.org/contribute/design/Time_syncing/ https://tails.boum.org/contribute/design/Time_syncing/
- pwg 6y agoFor linux, the 'date' command is used for manual setting of the system time (read the 'date' manual page for details). Obviously you have to log in as root to set the system time. Or, follow the details from other commenters here to get ntp working, and let the system set its own time.