【问题标题】:Why can't I get windows password from AWS?为什么我无法从 AWS 获取 windows 密码?
【发布时间】: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


【解决方案1】:

EC2Config 可能已禁用。您为由此引起的控制台输出获取的空字符串。这可能是 EC2Config 服务的问题;错误配置的配置文件或 Windows 无法正常启动。

对于恢复,我会说尝试使用您在用于创建 AMI 的机器上使用的密码,如果它不是定制的 AMI,请尝试完全不同的密码。如果你能分享 AMI ID,我会更有帮助。

另外,如果你想恢复服务器的 EBS 卷上的数据,可以关注this

【讨论】:

  • 实例是从自定义 AMI 启动的,但我不记得 AMI 密码了。
  • 我刚刚遇到了同样的问题,使用用于创建 AMI 的机器上的密码对我有用。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-08-30
  • 2018-12-24
相关资源
最近更新 更多