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?

已提問 2 年前檢視次數 2081 次
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
專家
Rob_H
已回答 2 年前
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.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南