How can I find the password for root user in EC2 instance

0 votes
I have never set a password for root user and its asking for a password, where can I find the password?
Mar 13, 2019 in AWS by Shalil
2,335 views

1 answer to this question.

0 votes

Most of the AMI's do not use passwords on their root user that I've noticed. The best you can do is to detach your EBS file system and mount it on another instance so that you can go in and fix the authorized_keys files or /etc/users or whatever is appropriate to resolve your problem. Once it is fixed, you can unmount and detach it, then reattach it to your old instance so that it mounts as / again.

answered Mar 13, 2019 by ranjan

Related Questions In AWS

0 votes
2 answers

How can I find out the instance id of an ec2 instance from within the ec2 instance?

A curl or wget to http://169.254.169.254/latest/meta-data/instance-id will ...READ MORE

answered Mar 9, 2020 in AWS by anonymous
6,961 views
0 votes
1 answer

How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

This can be done using the following ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,640 points
3,302 views
0 votes
1 answer

I have an ec2 instance I want to store my backups in s3 how can I store it?

Mount the s3 bucket in the instance ...READ MORE

answered Oct 12, 2020 in AWS by vickie
722 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Find region from within an EC2 instance

There is one more way of achieving ...READ MORE

answered Mar 13, 2019 in AWS by trisha
2,540 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP