En utilisant AWS re:Post, vous acceptez les AWS re:Post Conditions d’utilisation

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?

demandé il y a 3 ans2,4 k vues
2 réponses
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
EXPERT
répondu il y a 3 ans
0
Réponse acceptée

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.

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions