Question
How to disable the Google Authenticator or the Multi-Factor Authentication (MFA) extension via CLI?
Answer
1. Connect to the Plesk server via SSH (Linux) / RDP (Windows Server).
2. Run the following command to disable the extension (on Windows Server, start a command prompt as an Administrator):
For Google Authenticator
For Multi-Factor Authentication (MFA)
plesk bin extension --disable google-authenticator
To completely remove the extension, run:
plesk bin extension --uninstall google-authenticator
plesk bin extension --disable mfa
To completely remove the extension, run:
plesk bin extension --uninstall mfa
Additional Information
To enable the extension again:
-
Go to Plesk > Extensions > My Extensions > Google Authenticator (or Multi-Factor Authentication) > More > Enable.
-
In a command-line interface:
For Google Authenticator:plesk bin extension --enable google-authenticator
For Multi-Factor Authentication (MFA):
plesk bin extension --enable mfa