请问如何修改EC2的密码,谢谢

0

请问如何修改EC2的密码,我没有找到怎么修改,感谢指导,谢谢!

asked a year ago184 views
2 Answers
0

使用什么EC2操作系统?
如果你使用的是Windows操作系统,你可以按照以下文件中的程序来进行修改。
https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/WindowsGuide/ResettingAdminPassword_EC2Launchv2.html

profile picture
EXPERT
answered a year ago
0

现在AWS官方已提供Systems Manager Automation runbook:AWSSupport-ResetAccess 针对EC2实例做重置密码的自动化程式操作。针对OS为Windows的实例,该程式可以重新设定本地管理员的密码,另外也支援新的密钥生成。Linux的实例则可以重新生成新的SSH密钥。更多详细资讯请参考官方文档[1]。
若要使用该runbook,请至console搜寻Systems Manager,进入服务页面后可在侧边栏中找到Automation,进入后可以看到Execute automation的按钮,点击后即可于搜寻栏中搜寻AWSSupport-ResetAccess。进入页面后则可以点击右上方Execute automation按照指示填入相关的参数。
需注意执行该runbook需要相关的操作权限,即需先于IAM进行设定,请详读[1]文档中开始前的准备动作部分。也需注意Systems Manager Automation会停止此实例,并建立 AMI。 所以储存在instance store volumes的资料将会遗失。另外,如果您不使用弹性IP,原先的公用IP 位址将会变更。

[1] https://docs.aws.amazon.com/zh_cn/systems-manager/latest/userguide/automation-ec2reset.html

AWS
Ling_L
answered 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