If you’re unable to connect via SSH to your EC2 instance, which of the following should you check and possibly
correct to restore connectivity?
Adjust Security Group to permit egress traffic over TCP port 443 from your IP.
Configure the IAM role to permit changes to security group settings.
Modify the instance security group to allow ingress of ICMP packets from your IP.
Adjust the instance’s Security Group to permit ingress traffic over port 22 from your IP.
Apply the most recently released Operating System security patches.
In a VPC everything is allowed out by default.