I'm sure a number of you were seeing red and ready to hit that downvote button as soon as you saw this question popping up again. It really does pain me to be asking a question that was seemingly answered elsewhere by simply adding a firewall exception. At this point, google search results are purple (visited) for me well down the page and I'm drawing a blank on how to continue.
I set up an EC2 instance and was able to connect fine over ssh with the key for about a day. I haven't actually done anything on it yet but when I went back to connect again it was timing out. I tried AWS Instance Connect as well but that failed with the "Failed to connect to your instance EC2 Instance Connect is unable to connect to your instance." message. Instance Connect previously worked yesterday.
The instance shows as running so I tried a reboot but that also didn't work. I also tried connecting from different networks to no avail.
At this point, I began checking all the usual suspects, port 22 is open for all IPs in the security group for inbound traffic, the Ubuntu user should be the default user still, I'm using the same connection info that previously worked (that being the public ip/compute-1.amazonaws.com domain).
My next step was to try stopping and starting the instance, which changed the IP but did not allow me to connect to it.
I then terminated the instance and rebuilt a second instance. That worked for a day, but here we are a day later with the same issue.
I often see checking the vpc/subnet as another possible source of the issue but that all checks out and the igw and everything else are still attached and with the proper routing rules (cross checked with a working instance to confirm).
I can only assume since this issue has followed me to a new instance that it's comething to do with my setup but I'm at a loss for how to continue as most of the troubleshooting steps involve connecting using instance connect or ssh, neither of which I can do. Has anyone else experienced this before?