I was able to properly access my EC2 instance till yesterday. I don't know what happened but suddenly today I am able to login to the instance but the server closes the connection after 10 seconds of login. What could be the reason?
The message I am getting
[ec2-user@ip-172-31-32-248 ~]$ Connection to ec2-18-221-152-137.us-east-2.compute.amazonaws.com closed by remote host.
Connection to ec2-18-221-152-137.us-east-2.compute.amazonaws.com closed.```