Skip to content

Error: as a security precaution the user account has been locked because there were too many login attempts

0

I often encounter the following error when connect to the instance using remote desktop.

However, I did not attempt to sign in nor I have any password set with my remote desktop. Can anyone help. Thank you.

  • You need to restrict RDP access to your specific IP address and wait 30 minutes or so.

1 Answer
0

This error (Error code: 0xd07) indicates that the Windows user account on your EC2 instance has been locked due to too many failed login attempts, even if you weren't the one making those attempts. This is a Windows security feature to prevent unauthorized access.

Here are some solutions to resolve this issue:

  1. Reset the password for the locked account. If you're using the default Administrator account, you can do this through the AWS Management Console by:
  • Getting the password using your private key (.pem file)
  • If you've changed the Administrator password since first launch, the stored password from your .pem file will no longer work
  1. If your EC2 instance is managed in SSM Fleet Manager, you can use it to reset the password and unlock the account. This is often the easiest solution.

  2. If your instance is not managed in SSM Fleet Manager, ensure that:

  • Your EC2 instance can access the internet or SSM VPC endpoints
  • The instance has the AmazonSSMManagedInstanceCore policy attached
  • Try rebooting the server after making these changes
  1. You can also use the EC2 Serial Console to access the instance and unlock the account if you cannot connect via RDP.

  2. For additional security measures, consider:

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.