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.

質問済み 1年前522ビュー
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.

回答済み 1年前
  • 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.

回答済み 1年前
  • 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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ