使用AWS re:Post即您表示您同意 AWS re:Post 使用条款

Windows Server "Password is not available"

0

I followed the guide for EC2 Windows Instances and got a "Password is not available" error when trying to get the password to connect to the instance. I used the official Amazon AMI for Windows Server 2016 Base with t2.micro (as specified in the guide).

The error says:

Password is not available. The instance was launched from a custom AMI, or the default password has changed. A password cannot be retrieved for this instance. If you have forgotten your password, you can reset it using the Amazon EC2 configuration service.

I am confused, as I used the official AMI from Amazon and I didn't change the password (I can't even connect to the instance).

How do I resolve this issue and connect to the instance?

已提问 3 年前2366 查看次数
2 回答
1

This is documented here: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-key-pairs.html

As you can see in the docs, it only specifies RSA for Windows instance. For Linux instances you can use RSA and ED25519 key pairs.

profile pictureAWS
专家
已回答 3 年前
0
已接受的回答

It turns out the issue was that I was using an ED25519 key pair, but only RSA key pairs are supported for Windows machine. This ought to be specified somewhere.

已回答 3 年前

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

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

回答问题的准则