跳至内容

Impossible to connect to ec2 windows instance

0

Unable to Connect to Windows EC2 Instance via RDP Despite Proper Security Group, Route Table, and Internet Gateway Configuration

I am having trouble connecting to my Windows EC2 instance via RDP (port 3389). Here are the details of my setup:

Instance ID: i-0c1290cdeee76c0f6
Public IP: 44.223.170.128
VPC ID: vpc-0f4251f872102fd63
Subnet ID: subnet-0a347d7e42688eca2
Security Group ID: sg-02b4db9350cba728d

What I've Verified So Far:

Security Group:
    Port 3389 (RDP) is open to 0.0.0.0/0 for inbound traffic.
    The security group allows outbound traffic on all ports.

Route Table:
    The route table for the subnet has a route for 0.0.0.0/0 pointing to the Internet Gateway (igw-06fd24c4882bf0e6c).
    There is also a local route for the internal CIDR block 10.0.0.0/16.

Internet Gateway:
    The subnet is connected to an Internet Gateway, and the instance has a public IP.

Issue:

Despite having these configurations, I am unable to connect to the instance via RDP. Additionally:

The SSM agent on the instance is not registering as online, and I cannot use AWS Systems Manager to troubleshoot the instance.
I'm unable to confirm if Windows Firewall is blocking RDP because I cannot connect to the instance.
已提问 1 年前167 查看次数
3 回答
0

hello what is the error massage or response you get from your RDP client ? maybe there is a network blocking from your network and not on aws side or the ec2 instance ?

已回答 1 年前
0

Hello nzer94,

Have you try connecting into that ec2 instance on AWS console using fleet mananger? If not would suggest you to try it.

AWS
已回答 1 年前
-1

Hi,

I would suggest that you first try to connect to your WIndows instance via Instance Connect. See https://repost.aws/knowledge-center/ec2-instance-connect-troubleshooting

Then, when your are in, it will be easier to understand why RDP doesn't work (Window firewall, etc.) because you will have access to Windows terminal to run your commands.

Best,

Didier

专家
已回答 1 年前

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

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