Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to RDP to EC2 instance

I created a VM using Hyper-V on my local machine which I can RDP onto fine. I exported the VHDX to VHD and then uploaded it to AWS via the API. This created a new EC2 instance for me but I cannot connect to it as it has no security keypair associated. Thus I created a private AMI from the instance and re-instantiated a new EC2 instance from this AMI, setting the keypair in the process to ensure HTTP, RDP etc are permitted. The EC2 instance is running, but when I download teh RDP shortcut if fails to connect. I've tried rebooting the instance several times (as this was one of the suggested solutions on here when I searched) but it hasn't helped.

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

Any idea what I'm doing wrong? I'm not even getting as far as the password prompt, its the connectivity is the problem.

Thanks

like image 826
LDJ Avatar asked Jan 15 '13 20:01

LDJ


1 Answers

I had a similar problem - this is the tip 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 can't connect to the remote computer

like image 76
genegc Avatar answered Oct 08 '22 10:10

genegc