Why can't I connect to my Elastic Beanstalk instance using SSH?
Last updated: 2019-10-08
I can't connect to the Amazon Elastic Compute Cloud (Amazon EC2) instances in my AWS Elastic Beanstalk environment using SSH. How do I troubleshoot this issue?
Before you connect to your instance using SSH, confirm the following:
- Your Amazon EC2 instance is in a public subnet and has a public IP address.
- You have an inbound rule on port 22 on the security group of your instances that allows your IP address or range of IP addresses to connect to your instance.
- You meet all the general prerequisites for connecting to your instance.
If you continue to experience timeout issues and still can't connect to your instance, then the SSH daemon on your instance could be crashing due to high memory utilization.
To troubleshoot memory issues, monitor the memory metrics of your Elastic Beanstalk instances using Amazon CloudWatch metrics.