Closed sophallee closed 1 year ago
the time should be synchronised
Did you confirm it? ntpdate -q pool.ntp.org
?
It really sounds like either your computer or the app(?) you're using has the wrong time set.
What is generating the code on the client side?
The delay isn't too great: [root@cms slee]# ntpdate -q pool.ntp.org server 139.180.160.82, stratum 2, offset -0.025777, delay 0.04787 server 67.219.100.202, stratum 2, offset -0.026687, delay 0.05949 server 162.159.200.123, stratum 3, offset -0.025012, delay 0.03571 server 103.76.40.123, stratum 3, offset -0.025579, delay 0.04906 1 May 09:54:55 ntpdate[177428]: adjust time server 139.180.160.82 offset -0.025777 sec
Issues is happening with Devolution Remote Desktop Manager, Putty, WinSCP and Linux SSH. It seems to be less problematic with Linux SSH though.
I get different error codes such
The time set on the phone may be wrong too. You never said what is generating the code on the client side.
Problem occurs with MFA code obtained on the Google authenticator app on the phone, Devolution Remote Desktop Manager and application on Desktop.
Issue is related to the time discrepancy between the laptop and time server. Devolution RDM and desktop application are using the same time, and MFA codes are the same. MFA code obtained from terminal server and phone works with issues.
I'll need to sync my laptop with an NTP server. Thanks for the guidance.
Heh. Thanks for the followup.
You're not the first to have it be due to time not being set correct: https://twitter.com/thomashabets/status/1133780752582217728
I am frequently getting issues with SSH and Google authenticator. Sometimes I need to enter the verification twice other times it takes ten tries to get it to work. It used to work just once before but now it takes multiple tries.
Chronyd and NTP has been installed on the server, so the time should be sychronised.
Here's the SSH logs
Here's the entry in /etc/pam.d/sshd
Here's snippets of the SSHD config file: