What Do I Do If I Cannot Enable 2FA?
Symptoms
- In the 2FA list, there are no servers with disabled 2FA.
- After 2FA is enabled, it does not take effect.
- Failed to enable 2FA.
Possible Causes
- Server protection is not enabled.
- 2FA settings have not taken effect. After 2FA is enabled, it takes about 5 minutes for the settings to take effect.
- For a Linux server, Key pair is selected as the login mode.
- The SELinux firewall is not disabled.
Solution
- Check whether HSS has been enabled for the server for which you want to use 2FA.
- If it has, go to 2.
- If it has not, enable HSS first.
- Check whether it has been 5 minutes since you enabled 2FA.
- If it has, go to 3.
- If it has not, wait for 5 minutes and check whether 2FA takes effect.
- Check whether your server is a Linux server with Key pair selected as its login mode.
- If it is, disable the Key pair login mode and enable the Password login mode.
- If it is not, go to 4.
- Check whether the SELinux firewall is disabled on your server.
- If it is, go to 5.
- If it is not, run either of the following commands to disable it.
- To temporarily disable the SELinux firewall, run the following command:
setenforce 0 #Temporarily disable
- To permanently disable the SELinux firewall, run the following command:
vi /etc/selinux config
selinux=disabled #Permanently disable
- To temporarily disable the SELinux firewall, run the following command:
- Contact technical support.
Parent topic: Security Configurations
- Symptoms
- Possible Causes
- Solution