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
demandé il y a 7 mois746 vues
1 réponse
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
répondu il y a 7 mois
profile picture
EXPERT
vérifié il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions