QT-DevOps / AWSIssues

Issues with AWS
Apache License 2.0
3 stars 26 forks source link

Not able to open instance created through CLI #51

Closed tejarajaboina closed 4 years ago

tejarajaboina commented 5 years ago

I have launched an EC2 machine through (CLI User) CLI with default VPC and Subnet:

aws ec2 run-instances --count 1 --image-id ami-04b9e92b5572fa0d1 --instance-type t2.micro --key-name Ec2leaning --security-group-ids sg-bf723de5 --subnet-id subnet-37065e6b

I logged in Console with root account and copied : ssh -i "Ec2leaning.pem" ubuntu@ec2-3-82-49-100.compute-1.amazonaws.com from pem file path opened git and ran above command.

I am not able to connect receiving an error like ssh: connect to host ec2-3-82-49-100.compute-1.amazonaws.com port 22: Connection timed out

image

srmanikanta commented 5 years ago

please follow the below steps:

Abbanapuri commented 5 years ago

delete default vpc and create new default vpc if you use default vpc otherwise please check your vpc