Whenever I try to connect my AWS EC2 instance via terminal using ssh command it shows a connection time-out problem.
One more thing, the public IP of that instance is not opening in a new tab, even after adding HTTP and HTTPS protocol in the inbound rule in the security group... Haven't found the solution til now. If you have any ideas/recommendations, share them in the comments below.
I changed the region to check if it was a problem in my region or not. But still showing the same thing. Checked my security group even.. Added HTTP and HTTPS in inbound rules but still public IP is not visible. I tried connecting via putty, but it still, didn't work.

When an SSH connection times-out, it is normally an indication that network traffic is not getting to the Amazon EC2 instance.
Things to check:
0.0.0.0/0)See also: Troubleshooting connecting to your instance - Amazon Elastic Compute Cloud