I have a website hosted in AWS EC2 with the t2.micro instance(Ubuntu 18.04.4). When I tried to connect through Putty or browser-based SSH connection from the AWS console, i am getting a connection timeout error. I tried using the instructions in the following link to fix it, but the console is stuck after I run the first command sudo iptables -F
. also my server goes down. then i have to reboot the instance from the AWS console.
Also I have added CloudFlare for this server, is it a cause of this problem?
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-resolve-ssh-connection-errors/
How do I resolve this problem?