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
已提问 1 年前395 查看次数
1 回答
0
已接受的回答

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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则