EC2 instance root password reset

0

I have an AWS account running a Ubuntu image. I want to change the root password on the instance, but 1) I don't recall it , and 2), i received the following failure when attempting to do so:

[cloudshell-user@ip-10-6-67-43 ~]$ sudo passwd root

sudo: passwd: command not found

In fact, nowhere on this E2C instance of Ubuntu does there exist a binary labelled "passwd"

Any clues?

Michael
asked 6 months ago644 views
1 Answer
0

Hello.

[cloudshell-user@ip-10-6-67-43 ~]$ sudo passwd root

You are connecting to CloudShell, not EC2.
CloudShell and EC2 are different things.
https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html

Please make an SSH connection to the target EC2 using the steps in the document below.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-ssh.html

profile picture
EXPERT
answered 6 months ago
profile picture
EXPERT
reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions