Search code examples
amazon-ec2sshtimeout

Operation timed out PORT 22, on SSH access to AWS EC2. How to solve it?


I have a instance Linux in an EC2 service that was working before I changed the security group in order to accept HTTP port 80.

Before that change it was only port 22, SSH, we see in the picture below: enter image description here

After I added HTTP I can't get access trough the terminal and get Time out operation error.enter image description here

How to solve this issue?


Solution

  • If you stopped the instance, and then started it (not a reboot) then the public IP will change. You can attach an Elastic IP address to prevent that.