Amazon EC2 is asking for root password in SSH

I am trying to conenct to a Gentoo AMI Gentoo_64-bit-EBS-2012-03-02-07-39-15 (ami-6ab26f03) for the first time via SSH with my Key Pair, but it's asking for a password. What is the default root password?

I replaced the IP with 99's:

hobbes3@hobbes3:~$ ssh [email protected]
Password: 

Actually it turned out that I needed to log in as ec2-user, then do sudo su -. Amazon incorrectly said to try logging in as root@... when you right click the instance and click Connect.


There's a certain way about handling keypairs. Let's say in this example that we create a keypair called "1stKey". When I click "Create Key Pair" it asks me for a name and generates that key, then causes my browser to download the private key named "1stKey.pem". EC2 will never let me get that private half again, so unless you can find your $whatever.pem file, you'll need to generate a new one. You can also upload the public half of an already existing key.

enter image description here

From there, you'll do the usual ssh [email protected] -i path/to/your_key.pem. If you don't have the key that was used to create the instance, you'll need to terminate it and start fresh mount that EBS image to some other functioning instance and fix it or kick yourself for not using an EBS backing. At least for the default Amazon instances, there is no direct root access, but rather sudo access for ec2-user. Perhaps the people who generated your image followed that convention.


You didn't specify your ssh key by the looks of it so it's assuming you want to use a password. Most AMIs are configured to NOT allow ssh access for root with a password. Fix your parameters to ensure the key is being specified.