Cannot connect to my instance using RDP in Windows

0

I'm on free tier AWS instance that started a month ago. Back then, it was working fine. I'm unable to connect since 1 week, and after some research, I found a workaround to disable the firewall via System Manager automation, running AWSSupport-TroubleshootRDP. After successful execution, I can connect again to my instance but after like 30 seconds, i will get disconnected again and not able to connect back.

Any help is appreciated.

질문됨 일 년 전332회 조회
2개 답변
0

I am sorry I did not understand “source of alphanumeric characters”. It appears to me source type could be different security group, such as default security group, or any prefix lists. Please delete this rule and if you need the other protocol to access your EC2, just create another rule for that protocol, such as http/https or ping and save the rule, then try to ping your EC2 from your own computer. You also did not answer how your EC2 gets its public IP, such if you stop your EC2 - it may disconnect from the EIP - as far as I can remember. You have to reassociate the EIP with the EC2.

You can recheck your route table and its association also, just to confirm that the configuration did not change by accident. Finally I wish your good luck.

답변함 일 년 전
  • I went to the Elastic IPs in the navigation pane but did not see any details. I guessed it was deleted somehow so I tried to allocate elastic ip address and associate it with my instance. After that, I still could not connect to my instance. I ended up using AWSSupport-ExecuteEC2Rescue tool and now I'm able to connect. Thanks for your responses!

  • Glad to hear that, thanks.

0

I have gussed that you have EIP not dynamically allowed public IP for your Windows EC2, then please check your security group rules whether the RDP protocol is allowed to connect from 0.0.0.0./0 or your own IP. If you get your Public IP dynamically (your own computer), then your Public IP can change. You can refresh your own IP or change it 0.0.0.0/0 in the security rules.

You can also check your Windows (EC2) inbound firewall and RDP protocol whehter it is closed by any chance. If it is closed open it or create a new inbound rule for RDP connection.

답변함 일 년 전
  • Thanks for your response/ I can see 2 inbound rules in the security groups, one with RDP type and source 0.0.0.0/0. Another rule is with All traffic type and source of alphanumeric characters. And base on the automation log, below is the output for RDP status. Current RDP Port: 3389. Network Level Authentication is enabled on this machine. Remote Desktop connections are enabled on this machine.

    Is there anything else I need to check please?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠