Search code examples
amazon-ec2timeoutamazon-web-servicesconnection

Connection time out while connecting to EC2


I am a new user of amazon web services and trying to learn to use the services.

I used the getting started EC2 guide to create and connect to an EC2 instance (trying to be within the free usage tier).

I am able to create the EC2 instance for both Linux and windows, but I am not been able to connect to the running instance. I followed the instruction given in the getting started guide but still not getting any positive results. I used the MindTree tool as well as the putty to connect to running Linux instance. For window server, I tried the RDP connection with the running instance.

I am getting connection time out error in MindTree, putty, and window RDP on window instance. I checked the security setting of the instance and port 22 (ssh) was enabled for the Linux instance and port 3389 (RDP) was enabled for the window instance.

Please help me resolving this issue.


Solution

  • The problem was the corporate LAN that was blocking the SSH and RDP traffic. I tried it in my home network and it worked like a charm.