Ensure your security group has the following rules set up for port 22 (SSH):
1.Allow SSH access from your IP: In your EC2 security group, add an inbound rule for port 22 with your local IP address. This will authorize your IP for SSH access. 2. Allow EC2 Instance Connect IP Range: Add an inbound rule for port 22 with the IP range 13.233.177.0/29 for EC2 Instance Connect, as AWS recommends. This enables the necessary connectivity from EC2 Instance Connect.
Any other software firewall or IP table rules there for the EC2?