I am trying to connect to an instance in AWS, but found this causes some error while connect with the instance using ssh. I have check the inbound Rule for ssh is set to 22 and Allow from 0.0.0.0/0 But in outbound allow all traffic but still because of some error in EC2 instance connect:
Failed to connect to your instance
EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html.
Using terminal to SSH causes timeout issue:
C:UsersanuraDownloads>ssh -i “hsclubkey.pem” [email protected]
ssh: connect to host ec2-3-108-250-155.ap-south-1.compute.amazonaws.com port 22: Connection timed out
I also tried to reboot and restart many times, but still it is not allowing me to connect.