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
preguntada hace 7 meses733 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 7 meses
profile picture
EXPERTO
revisado hace 7 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas