port 22: Connection timed out

0

hello, i installed Docker-Compose mailserver on EC2, now i cant connect to that EBS, once i Attach another EBS it works, as i checked AWS will block EC2 with their firewall! how can i connect to my old EC2+EBS again? thanks

1 Answer
0

Hello,

Generally for connection timed out issues, following are the reasons -

  • The instance's IP address or hostname is correct.
  • The instance is passing its health checks.
  • The security group of the instance allows incoming traffic on TCP port 22.
  • The network ACLs of instance subnet allows incoming traffic on TCP port 22 and allow ephemeral port for the outgoing traffic.
  • The route table of the instance’s subnet is configured properly to provide connectivity between EC2 instance and the SSH client. vThere isn't a firewall blocking the connection between SSH client and the EC2 instance.
  • SSH isn't blocked by TCP Wrappers in the instance.

Additionally, I do want to point out that AWS blocks outbound traffic on port 25 (SMTP) of all EC2 instances and Lambda functions by default.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/



According to your specific usecase, I installed docker-compose and installed Mailu afterwards to recreate the issue. However, I currently didn't run into any SSH errors even after installing the mailserver on the Amazon Linux 2.



In case if you are still facing this issue, we will need to troubleshoot based on your configurations. Could you please create a support case with our Premium Support team directly so we may discuss details on your resource configurations?

Please do not post any sensitive information (such as account or it's resources details) over re:Post since this is a public platform.

profile pictureAWS
SUPPORT ENGINEER
Yash_C
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions