EC2 RDP connection failed. An internal error has occured

0

Hi,

I lost my RDP connection to my web server EC2 today. It was working fine yesterday. I don't know what happened. windows might update itself or something else.

I run all the steps stated below the links. I detach my disk and updated the necessary registry setting to disable my firewall and check the rdp service status. and reattach my root volume to my server gain. but did not help.

https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/troubleshoot-connect-windows-instance.html https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/troubleshoot-connect-windows-instance.html#rdp-issues

I can see my destkop screenshot on login screen and I checked my RDP port is returning true to the below command server screenshot

Test-NetConnection -ComputerName my.server.com -Port 3389 TCP response

any welp will be appreciated. Thanks in advance.

ypbr
asked a year ago373 views
1 Answer
0
Accepted Answer

Hi,

Removing all files in "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" folder solved the issue.

In case I copied them to a different folder then delete them all.

To delete them I shut down my server. create another dummy instance and attach my volume to the dummy instance as a secondary disk. then I changed security settings from Properties > Security> Advance section. You need to change the ownership and enable inheritance.

Then simply reattach my volume to my original server as /dev/sda1 (do not forget to enter this device name section).

I guess the system has just updated itself and it caused an issue.

Thanks anyway

ypbr
answered 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.

Guidelines for Answering Questions