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 12 in AWS by Shalil
23 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 12 by ranjan

Related Questions In AWS

0 votes
1 answer

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

On Amazon Linux AMIs you can do: $ ...READ MORE

answered Sep 10, 2018 in AWS by Archana
• 4,090 points
28 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,560 points
126 views
0 votes
1 answer
0 votes
1 answer

How do i manage firewall settings for my instance in Lightsail?

Yes. You can control the data traffic ...READ MORE

answered Sep 12, 2018 in AWS by Archana
• 4,090 points
123 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 12 in AWS by trisha
23 views