For Amazon Linux, the username is “ec2-user”, for ubuntu it is simply “ubuntu”.
To connect to them you need the key file that was generated when the instance was created, and the public DNS address. Â Use a command like:
ssh -i myinstance.pem ec2-user@12.34.56.789
Note: Make sure you have opened up ssh (port 22) access to your instance from your IP address.