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
preguntada hace un año389 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas