I'm trying to SSH into my Elastic Beanstalk instance using the EB CLI to access my logs however after entering eb ssh
, I get this:
INFO: Attempting to open port 22.
INFO: SSH port 22 open.
ssh: connect to host (IP for the EC2 instance) port 22: Operation timed out
INFO: Closed port 22 on ec2 instance security group.
ERROR: An error occurred while running ssh.
I've set the security group of my ec2 instance to allow inbound ssh from anywhere on port 22 however I still get this error.
What's the issue? Thanks.