【发布时间】:2019-08-05 23:12:58
【问题描述】:
我在 AWS 上启动了一个 Windows EC2 实例,但我无法获取登录密码。即使在启动服务器一天后,我仍然会收到此警告消息。
Password not available yet.
Please wait at least 4 minutes after launching an instance before trying to retrieve the auto-generated password.
Note: Passwords are generated during the launch of Amazon Windows AMIs or custom AMIs that have been configured to enable this feature. Instances launched from a custom AMI without this feature enabled use the username and password of the AMI's parent instance.
我也试过下面的命令行:
$ aws --profile ie ec2 get-password-data --instance-id i-xxxxx --priv-launch-key my.pem --region ap-southeast-2
但它返回一个空密码:
{
"InstanceId": "i-xxxx",
"PasswordData": "",
"Timestamp": "2019-08-05T23:12:04.000Z"
}
那么我怎样才能得到这个 EC2 实例的密码呢? 我试图停止/启动实例,但没有帮助。
一个可能的原因是实例是从自定义 AMI 启动的,但我也不知道该 AMI 的密码。有没有办法重置密码?
【问题讨论】:
-
我想知道停止/启动实例是否有帮助?否则,启动一个新的。您可以使用“Launch more like this”来简化操作。
-
我已经尝试过了,但没有帮助
-
您在创建实例时是否为 ec2 实例附加了用于密码加密的密钥?您可以从 AWS 控制台获取密码吗?
-
您是否使用自定义 AMI 启动了此实例?
-
是的,它是一个定制的 AMI
标签: amazon-web-services amazon-ec2