Articles in this section

Multi-Factor Authentication (MFA) in Plesk declines one-time password that was sent to the mobile phone

Plesk for Windows Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

  • Google Authenticator extension in Plesk declines one-time password that was sent to the mobile phone:

    PLESK_ERROR: XXXXXX is not valid

    Capture1.PNG

  • Phone number was set correctly and the correct password from the one-time message was entered.

Cause

Incorrect time is set on the server or Google Authenticator is misconfigured

Resolution

Apply one of the following solutions:

Set correct time on the server
  1. Check what is the current time for your time zone using any public resources, for example, worldtimeserver.com:

  2. Compare it with the current server time in Plesk > Tools & Settings > System Time. If it is different, correct it in Plesk > Tools & Settings > System Time.

  3. Make sure that the local time and the timezone on the server match those on the mobile device.

 

Note: If the time does not change via Plesk UI, the server time need to change directly from the server:

For Windows check the following article How to configure an authoritative time server in Windows Server

For Linux:

  1. Log in to the server over SSH:

    Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.

  2. Disable NTP:

    # timedatectl set-ntp false

  3.  Change the timezone Hour/mionites/seconds:

    # timedatectl set-time HH:MM:SS

  4.  Enable ntp:

    # timedatectl set-ntp true

Re-enable Multi-Factor Authentication (MFA)
  1. Log in to the server over SSH or RDP

    Note: if direct SSH/RDP access to the server is not possible, contact server administrator for further assistance.

  2. Disable the extension:

    # plesk bin extension --disable mfa

  3. Enable it back:

    # plesk bin extension --enable mfa

Was this article helpful?

Comments

1 comment
Date Votes
  • The command plesk is unknown

    0

Please sign in to leave a comment.