forked from Long80A/ecs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
admin
committed
Sep 20, 2019
1 parent
a126fc3
commit 3190042
Showing
1 changed file
with
19 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,41 @@ | ||
# 重置实例登录密码 {#concept_qct_gfl_xdb .concept} | ||
# 重置实例登录密码 {#concept_qct_gfl_xdb .task} | ||
|
||
本文介绍如何重置实例登录密码,适用于在创建时未设置密码或者忘记密码的情况。 | ||
|
||
## 注意事项 {#section_vkr_t12_qgb .section} | ||
实例必须处于稳定状态,例如**已停止**、**运行中**。关于实例的状态,请参见[实例生命周期介绍](cn.zh-CN/实例/实例生命周期介绍.md#)。 | ||
|
||
- 对于正在运行的实例,您需要在重置实例登录密码后重启实例才能使新密码生效。重启操作可能会对您的业务造成影响,请提前规划好操作时间,建议在业务低谷时操作,将影响降到最低。 | ||
- 如果ECS实例使用密码认证,[绑定密钥对](../cn.zh-CN/安全/SSH密钥对/使用SSH密钥对.md#section_d4l_ql1_ydb)后,密码验证方式自动失效。但如果在绑定密钥对之后重置实例密码,除使用密钥对方式之外,您也可以使用密码方式登录实例。 | ||
|
||
## 前提条件 {#section_mg1_3fl_xdb .section} | ||
|
||
实例必须处于稳定状态,比如**已停止**、**运行中**。关于实例的状态,请参见[实例生命周期](cn.zh-CN/实例/实例生命周期介绍.md#)。 | ||
|
||
## 操作步骤 {#section_ng1_3fl_xdb .section} | ||
|
||
按以下步骤在控制台上修改一台或多台实例的登录密码: | ||
- 如果ECS实例使用密码认证,绑定密钥对后,密码验证方式自动失效。但如果在绑定密钥对之后重置实例密码,除使用密钥对方式之外,您也可以使用密码方式登录实例。 | ||
- 您也可以在实例内部修改登录密码,但是仍然需要在控制台重启实例后才会生效。具体操作,请参见[在实例内部修改登录密码](cn.zh-CN/实例/管理实例/在实例内部修改登录密码.md#)。建议您直接在控制台操作。 | ||
|
||
1. 登录[ECS管理控制台](https://ecs.console.aliyun.com)。 | ||
2. 在左侧导航栏,选择**实例与镜像** \> **实例**。 | ||
3. 选择地域。 | ||
4. 根据需要修改密码的实例数量,执行不同的操作: | ||
- 修改一台实例的登录密码:选择实例,在**操作**列,选择**更多** \> **密码/密钥** \> **重置实例密码**。 | ||
2. 在左侧导航栏,单击**实例与镜像** \> **实例**。 | ||
3. 在顶部状态栏左上角处,选择地域。 | ||
4. 根据需要修改密码的实例数量,执行不同的操作。 | ||
- 修改一台实例的登录密码:选择实例,在**操作**列,单击**更多** \> **密码/密钥** \> **重置实例密码**。 | ||
|
||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156082797032543_zh-CN.png) | ||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156897314632543_zh-CN.png) | ||
|
||
- 同时修改多台实例的登录密码:选择多台处于稳定状态的实例,在列表底部单击**重置实例密码**。 | ||
|
||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/15608279705442_zh-CN.png) | ||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/15689731465442_zh-CN.png) | ||
|
||
5. 在弹出的重置密码对话框中,设置符合要求的新密码,再单击**提交**。 | ||
5. 在弹出的重置密码对话框中,设置符合要求的新密码,单击**提交**。 | ||
|
||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156082797049567_zh-CN.png) | ||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156897314649567_zh-CN.png) | ||
|
||
6. 根据实例的状态,执行不同操作: | ||
- **运行中**的实例:[重启实例](cn.zh-CN/实例/管理实例/重启实例.md#)使新密码生效。 | ||
6. 根据实例的状态,执行不同操作。 | ||
- **运行中**的实例:重启实例使新密码生效。具体操作,请参见[重启实例](cn.zh-CN/实例/管理实例/重启实例.md#)。 | ||
|
||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156082797149568_zh-CN.png) | ||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156897314649568_zh-CN.png) | ||
|
||
- **已停止**的实例:[启动实例](../cn.zh-CN/实例/管理实例/启动和停止实例.md#)后新密码自动生效。 | ||
- **已停止**的实例:启动实例使新密码生效。具体操作,请参见[启动或停止实例](../cn.zh-CN/实例/管理实例/启动实例.md#)。 | ||
|
||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156082797149569_zh-CN.png) | ||
![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/9647/156897314649569_zh-CN.png) | ||
|
||
|
||
您可以通过阿里云CLI、OpenAPI Explorer和阿里云SDK等开发者工具调用[ModifyInstanceAttribute](../cn.zh-CN/API参考/实例/ModifyInstanceAttribute.md#)中的Password参数修改实例登录密码。 | ||
**相关文档** | ||
|
||
## 相关操作 {#section_sg1_3fl_xdb .section} | ||
|
||
您也可以[在实例内部修改登录密码](cn.zh-CN/实例/管理实例/在实例内部修改登录密码.md#),但是仍然需要在控制台[重启实例](cn.zh-CN/实例/管理实例/重启实例.md#)后才会生效。建议您直接在控制台操作。 | ||
[ModifyInstanceAttribute](../cn.zh-CN/API参考/实例/ModifyInstanceAttribute.md#) | ||
|