I just launched the official AMI (ami-04befdb203b4b17f6) on EC2, and by default it comes with only a root user AFAICT. That’s fine, but when I go to login I get a password prompt:
$ ssh root@123.456.789.123
Password:
What’s the default root user password? Also there should probably be a security warning somewhere advising people to change the root password and set services.openssh.permitRootLogin = "no";.
Adding my experience: created a NixOS 21.05 AMI instance (from NixOS-21.05.740.aa576357673-x86_64-linux - ami-069a0ca1bde6dea52), tried to log in with ec2-user (as described in the docs), and was greeted with the Password: prompt as well:
$ ssh -i my.pem ec2-user@ec2-...com
Password:
In my case the solution was using root user instead: