Try EC2Rescue for Linux.
You can detach the root volume of the EC2 instance that is having the problem, attach it to the instance that you have set up EC2Rescue, and run EC2Rescue for analysis and repair.
EC2 Linux instance unresponsible/unreachableasked 6 months ago
Cannot SSH into Resized EC2 Instanceasked 2 months ago
EC2 instance suddenly unreachable via SSHAccepted Answerasked 9 months ago
Can't connect to EC2 instance via sshasked 2 months ago
Cannot connect or view new ec2 instanceasked 2 years ago
Sites are up and writable, but cannot connect via SSH nor Webminasked 2 years ago
Unable to connect to amazon EC2 instance via PuTTYasked 2 months ago
Contrast between file creation via EC2 Instance Connect & SSH Clientasked a year ago
Connect to Ec2 instance bastion via Session Managerasked a year ago
LOGIN INTO LINUX KALI EC2 INSTANCE FAILUREasked 8 months ago