AWS EC2 Instance – Cannot connect to SSH even i add a rule to the security group

  amazon-ec2, amazon-web-services, putty, ssh, windows

I have set up a AWS EC2 instance(windows machine) and it is running. When i try to connect with it over ssh, the connection failed avery time.

Connection Time out

I tried to ssh with this commande

ssh -p 22 [email protected] and ssh hostname

Without any success, i tried to ping with the ip but no answer
I have no idea about what happen, So please help me because i want to transfer files from s3 bucket to ec2 and lot of tasks.

Source: Windows Questions