내용으로 건너뛰기

EC2 instance remote desktop suddenly unable to access

0

EC2 instance running windows server. Microsoft Remote Desktop, unable to access. It happens a few days ago, I tried it a few hours later, it worked, then it didn't work again. All settings seems correct and I didn't change anything. It never happened before. unable to access I tried restart the instance and connect with public ip, doesn't help. What other things I could try?

Thanks!

질문됨 9달 전222회 조회

3개 답변
0

Based on your description, there are several potential causes for your intermittent RDP connection issues to your Windows EC2 instance. Here are some troubleshooting steps you can try:

  1. Verify your security group configuration:
  • Ensure port 3389 (RDP) is open in your security group's inbound rules
  • Check if the rule allows traffic from your IP address or the necessary source
  1. Check network configuration:
  • Confirm your instance is in a public subnet with an internet gateway attached
  • Verify the route table has a route for 0.0.0.0/0 pointing to the Internet Gateway
  • Check Network ACLs (NACLs) allow both inbound traffic on port 3389 and outbound traffic on ephemeral ports (1024-65535)
  1. Verify Windows settings using AWS Systems Manager:
  • Use the AWSSupport-TroubleshootRDP automation document to:
  • Verify that Network Level Authentication is disabled (if not part of an Active Directory domain)
  • Check that the Remote Desktop Service (TermService) is set to Automatic startup and is running
  • Confirm the RDP port is set to the default 3389
  • Ensure Remote Desktop connections are allowed on your instance
  • Check if Windows Firewall is blocking RDP connections
  1. Consider resource constraints:
  • If you're using a smaller instance type (like a t2.micro), it might be experiencing performance issues due to CPU credit exhaustion or resource limitations, especially after periods of inactivity
  1. Authentication issues:
  • Ensure you're using the correct username (typically "Administrator") and password
  • If you changed the administrator password after initial setup, the password retrieved from the .pem file will no longer work

If the issue persists, you might need to stop and start the instance (not just reboot) or consider using Session Manager as an alternative way to access your instance if it has the SSM agent installed.
Sources
Troubleshoot issues connecting to your Amazon EC2 Windows instance - Amazon Elastic Compute Cloud
Unable to connect to my Windows Server instance through Windows Remote Desktop | AWS re:Post
RDP can't connect to running ec2 G instance | AWS re:Post
Free EC2 doesn't work | AWS re:Post

답변함 9달 전

AWS
전문가

검토됨 9달 전

0

Besides RDP from internet, you can try connecting in-browser using Fleet Manager Remote Desktop.

Here is a video that walks through the configuration and connection process

AWS
전문가

답변함 9달 전

전문가

검토됨 3달 전

0

Confirm the RDP port is not blocked, check if there was no recent security update or activity that required port level block

답변함 9달 전

전문가

검토됨 3달 전

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

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

관련 콘텐츠