Direct Admin 2FA

NavidN

New member
Joined
Oct 22, 2024
Messages
3
Hey guys,

I added Google 2 Factor Authentication to my Direct Admin account, and now when I want to log in, it says "Wrong two factor authentication code". I'm 100% sure I'm entering the correct code from my Google Authenticator app. Do you know what's wrong here?
 
Hi Eric, thanks for your reply.
My server is in Germany, and I am in California. I use Google Authenticator. How can I fix the time zone difference?
@ericosman
 
If it's for the Google Authenticator, I found this:
1. Go to the main menu on the Google Authenticator app
2. Select Settings
3. Select Time correction for codes
4. Select Sync now
 
Odd because Google itself writes you should be able to change the time if you scroll down here:

Otherwise I don't know. I don't use GA.

You might be able to change your servers timezone via the timedatectl command.
You have to login as root for that.
Or change the time/datezone used by directadmin but I don't know exactly where that one is saved. There is one in the options.conf file, but that one is for php, not sure if DA itself is using that too.
 
Back
Top