EC2Rescue for Linux is a tool provided by AWS to help diagnose and recover issues in Amazon EC2 Linux instances.
Run the following command to download EC2Rescue:
wget https://s3.amazonaws.com/ec2rescue/linux/latest -O ec2rescue-linux
Then, make it executable:
chmod +x ec2rescue-linux
To check for common system issues, run:
sudo ./ec2rescue-linux --collect-only
If you cannot connect via SSH, use:
sudo ./ec2rescue-linux --restore-ssh
Use EC2Rescue to collect and analyze boot logs:
sudo ./ec2rescue-linux --collect-logs
Run the following to repair file system issues:
sudo ./ec2rescue-linux --restore-fstab
To reset the root password:
sudo ./ec2rescue-linux --reset-password
If the instance has lost network connectivity, try:
sudo ./ec2rescue-linux --restore-network
If further AWS support is needed, generate a support bundle:
sudo ./ec2rescue-linux --collect-all
Welcome to our comprehensive collection of programming language cheatsheets! Whether you're a seasoned developer or a beginner, these quick reference guides provide essential tips and key information for all major languages. They focus on core concepts, commands, and functions—designed to enhance your efficiency and productivity.
ManageEngine Site24x7, a leading IT monitoring and observability platform, is committed to equipping developers and IT professionals with the tools and insights needed to excel in their fields.
Monitor your IT infrastructure effortlessly with Site24x7 and get comprehensive insights and ensure smooth operations with 24/7 monitoring.
Sign up now!