Reputation: 3127
Cannot SSH to ec2 instance. I tested with Ubuntu and Amazon linux. I created the security group but the ssh connection timed out. What could be the possible reason?
Upvotes: 0
Views: 376
Reputation: 269320
The standard items to check are:
0.0.0.0/0
If it is still not working, then try to access the instance from another network (eg office vs home vs tethered via your phone). Some corporate networks block SSH access.
You could also attempt to access via EC2 Instance Connect or AWS Systems Manager Session Manager (extra permissions required in the IAM Role assigned to the instance).
Upvotes: 1