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
gefragt vor 7 Monaten747 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 7 Monaten
profile picture
EXPERTE
überprüft vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen