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
已提问 7 个月前742 查看次数
1 回答
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
专家
已回答 7 个月前
profile picture
专家
已审核 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则