skip to Main Content

This might be a rather simple question, but is it possible to log into an EC2 Windows Server instance over RDP, using an IAM user’s credentials, or am I stuck using the password from the KeyPair?

2

Answers


  1. The only way to do that would be to have IAM identity center setup with SSM Fleet manager.
    From the documentation:

    Fleet Manager integrates with IAM Identity Center so you can connect to your instances without providing additional credentials.

    Otherwise, you have to specify either username/password or a the .pem file:

    When connecting to your instance, you can use Windows credentials or the Amazon EC2 key pair (.pem file) associated with the instance for authentication.

    Login or Signup to reply.
  2. EC2 instance access over RDP steps as below:

    1. In aws ec2 service site with your IAM login.
      screenshot reference
    2. Select your windows server in EC2 instance list. let respective EC2 instance in running state. note then only "Connect" button will be active.
    3. Select connect button. In the new window select ‘RDP client’ > select the ‘Get Password’.
    4. In ‘Get password Window’, import the pem which was associated with respective windows served in EC2 service. select ‘Decrypt password’.
    5. Copy the password, keep pasted in txt file for your future use.
    6. Run ‘mstsc’ for remote desktop and type the public DNS address (which you can get it from above step 3 window) and login as .Administrator and use the copied password for login.

    Pre requisite steps to edited in EC2 windows instance:

    1. Start the Windows Registry editor (type regedit in the "Start > Run" dialog)
    2. Navigate to: [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa] "LimitBlankPasswordUse"=dword:00000001 3. Change LimitBlankPasswordUse to 0 (zero) to enable the use of blank passwords, 1 to prevent blank passwords over the network.

    this solution considered as alternate.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search