How Do I Resolve Error "AK/SK authentication failed. Ensure that the system time is consistent with the standard time and the AK and SK are correct" When I Start the Agent?
Symptom
After the AK and SK of your HUAWEI CLOUD account are entered in the Agent, the AK/SK-based authentication fails. The specific error message depends on the OS.
- Windows: AK/SK authentication failed. Ensure that the system time is consistent with the standard time and the AK and SK are correct.
- Linux: AK/SK authentication failed. Ensure that the system time is consistent with the standard time and the AK and SK are correct.
For details about how to obtain the AK and SK, see How Do I Create an AK/SK pair for an Account? or How Do I Create an AK/SK Pair for an IAM User?
Possible Causes
Possible causes are as follows:
- The entered AK or SK is incorrect.
- The system time of the source server is consistent with the local standard time.
- The time zone in the source server is configured incorrectly.
- The AK and SK have been deleted or disabled.
- The programmatic access type is not enabled for the HUAWEI CLOUD account you used for migration.
Handling Methods
- The entered AK or SK is incorrect.
Check whether the entered AK and SK of the HUAWEI CLOUD account is correct, especially whether any spaces or characters are missed during the copy. Enter the AK and SK for authentication again.
- The system time of the source server is consistent with the local standard time.
Check whether the system time of the source server is consistent with the standard time of the time zone where the source server is located.
If it is not, change the system time to the local standard time, and enter the AK and SK for authentication again.
If services on the source server depend on the system time, check whether the time can be changed to avoid impact on services.
- The time zone in the source server is configured incorrectly.
Change the time zone in the source server so that the system time plus the time zone is equal to the standard UTC time. For details, see Changing the Time Zone. Enter the AK and SK for authentication again.
- The AK and SK have been deleted or disabled.
- The programmatic access type is not enabled for the HUAWEI CLOUD account you used for migration.
- Log in to the management console.
- Click the username in the upper right corner and choose Identity and Access Management.
- In the navigation pane on the left, choose Users and click the username you used for migration.
- On the Basic Information tab page, check whether Programmatic access is selected for Access Type.

- If it is not, click
, select Programmatic access, and click OK. 


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.