Unable to run RDP for EC2 instance

I created a virtual machine using Hyper-V on my local machine, on which I can work with RDP. I exported VHDX to VHD and then uploaded it to AWS via the API. This created a new instance of EC2 for me, but I can’t connect to it because it does not have an associated security key pair. So I created a private AMI instance from the instance and reinstalled a new EC2 instance from this AMI, setting the key in the process to allow HTTP, RDP, etc. The EC2 instance is running, but when I load the RDP shortcut if I cannot connect. I tried to reload the instance several times (since this was one of the suggested solutions here when I searched), but it did not help.

I also cannot ping any of these instances through public DNS or private DNS.

Any idea what I'm doing wrong? I did not even get to the password hint, the problem is with the connection.

thanks

+8
amazon-web-services amazon-ec2 hyper-v rdp
source share
6 answers

I had a similar problem - this is a hint from the AWS documentation that helped me solve it:

Verify that the route table for the subnet has a route that sends all traffic destined outside the VPC (0.0.0.0/0) to the Internet gateway for the VPC 

Additional debugging tips for this problem can be found here: Remote Desktop cannot connect to the remote computer

+15
source share

The problem may be related to the configuration of the security group associated with the instance. Make sure you have inbound TCP port 3389 allowed to connect through RDP.

+4
source share

in username:

. \ Administrator

.... and your decrypted password

See, this is a local user. but you don’t know the real local host name other than the public DNS name.

It was useful to me, I hope for you too.

+3
source share

My guess for the reason you are not getting into is with host certificates.

Remember that every computer connecting to the server through RDP must have an IAM user in AWS with an X.509 certificate uploaded to their account.

When importing or creating an AMI window, it is best to install and configure the EC2Config service.

The EC2 start service performs the following actions when the instance starts:

At initial setup:

  • Sets the host name for a private DNS name
  • Generates and sets a random password in the administrator account
  • Initializes and formats ephemeral disks
  • Generates and installs a host certificate used for terminals
    Services
  • Synchronizes instance clock with time server

After the initial setup:

  • Writes the last three entries in the system event log in Amazon EC2 so that you can debug startup problems.
  • Prepares instances for grouping

In addition, by default, security groups do not allow you to ping instances. You must enable ICMP in the security group.

Hope this helps.

EDIT: Here is a link to the 64-bit version of the EC2Config installer

0
source share

I also had the same problem. This is what I got from EC2.

Public DNS ec2-23-22-10-109-251.compute-1.amazonaws.com

Username Administrator

MyPassword Password

On the remote desktop, enter the domain and user name as ec2-23-22-109-251 \ Administrator

If you insert a password, it may not work, try inserting it, but enter the last 1 or 2 characters. After you receive a security certificate invitation to accept / install it, and your connection should open soon.

0
source share

This is what worked for me: Use your mobile phone as a “hot spot” that gives you a static IP address. It worked. Now I need to contact my ISP to assign a static IP address to my wireless router. He is currently splashing out DHCP IPs.

UPDATE: 07/12/2016 You need to go to the security group, select the instance, and then EDIT RDP. If you click "MyIP", that should work for those of us who work at home. If you are located, you may need to enter a custom CIDR.

0
source share

All Articles