The connection timed out error could be due to various factors such as:
Your security groups and network access control lists (NACLs) blocking traffic to and from your website.
The operating system has a firewall.
There is a firewall between the client and the server.
The host does not exist.
The following AWS video helps to solve the above mentioned factors:
Please note that the above is a third-party video, therefore you must test the recommendations in a test environment before applying them on production.
AWS ec2 system level logs provides more details on operating system level problems such as use of proxy or system being overloaded till it fails to process the incoming requests on time (see reference 1).
To resolve this, you can configure the inbound traffic for your website to allow traffic from your ip address or your selected network of addresses in your security groups and NACLs (see reference 2).
The reason for the second issue is that the instance type you are trying to use is not supported for the EC2 serial console.
For supported instance types, please refer to the documentation on the provided link (see reference 3).
To connect to your instance using the EC2 serial console, the instance type must be built on the AWS Nitro System, excluding bare metal instances.
For information about Instances built on the Nitro System, please see reference 4.
You can change the instance type by following the documentation (see reference 5).
how to resolve "site not reached, <ip address of ec2 instance> refused to connect" error when trying to create s3 file gateway?asked 8 months ago
Error when trying to add db instance to VS server explorerasked 3 years ago
A connection to the ECC2 t2 micro instance could not be establishedAccepted Answerasked 6 months ago
I am trying to connect to my ec2 instance but instead its loading endlesslyasked 4 months ago
connection to AWS t2 Micro service from 3CXasked 9 months ago
EC2 Public IPv4 address fails when trying to load the website.asked a year ago
Why Do My EC2 T2.Micro Instances Come In With No HTTPD?asked a year ago
Connection to EC2 (t2.micro) Works Temporarily, Then Permanently TimesoutAccepted Answerasked 4 years ago
Getting "There was a problem connecting to your instance" when trying to reconnect to an EC2 instanceasked 10 months ago
Getting Access Denied when trying to access my websiteasked 3 years ago