Can not connect EC2 Instance via My Ip RDP but Anywhere-IPv4 address

0

Since a few days ago, for whatever reason, I stopped getting a remote connection to my EC2 instance, so, trying to solve the problem, I found that in the EC2 Management Console-Security Groups - sg-xxxxxxxxxxxxxxxx- app-sg - Edit inbound rules, I select Anywhere_IPv4 address 0.0.0.0 and I could connect to my EC2 instance but when I change it back to My IP I can't. Regularly, due to the periodic change of my IP address by my Internet provider, I update the IP address in the RDP inbound rule, but it no longer works. Thanks in advance for any help!!

已提問 2 年前檢視次數 959 次
2 個答案
0

Hi! A couple different solutions:

Is your Internet Service Provider doing any NATting that may cause the public IP to look different from the IP you are assigned?

Note: From a security perspective, I do not recommend leaving an inbound rule open to the world (0.0.0.0/0) as that allows anyone to reach your instance.

jsonc
已回答 2 年前
0

Have you considered using AWS Session Manager (SSM). With SSM you don't need to open inbound ports. You can forward a port on a remote instance to a port on your local machine. This allows you to forward the traditional RDP port to an available port on your local machine. You can then use any RDP client to connect to the forwarded port on your local machine to access the instance in AWS.

SSM pre-requisites

  • EC2 instance has internet connectivity (NAT gateway is fine), or is in a subnet that has VPC endpoints for SSM configured.
  • EC2 instance is configured with an IAM instance profile assigned to the instance that has the AmazonSSMManagedInstanceCore managed policy attached (or similar permissions).
  • EC2 instance is running the SSM Agent.
RoB
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南