简体   繁体   中英

Eucalyptus 3.4.2 CentOS 6 demo root password

I installed cloud-in-a-box/fastrack of Eucalyptus and am able to create instance and log into it. But when trying sudo, sudo su - or login in as root I'm asked for a password. I'm not sure what the password might be. Does anyone know what the default password for the Image is?

I think this is how the image is designed. It uses the cloud-user account only and has no root access, nor does it allow sudo.

There are other starter images available that can be "installed" that have sudo as root enabled. In those cases you simply issue

sudo su -

and you become root.

To see what is easily available use:

eustore-describe-images

As a note, some of the other starter images have different accounts (not cloud-user), such as ec2-user. If you don't know which account to use simply try to ssh into the instance as root and it will usually get a message back telling you:

Please login as the user "ec2-user" rather than the user "root".

I am not sure if there is a password on the root account in that image. Regardless, the recommended way to log into instances is by creating an SSH key ( euca-create-keypair KEYNAME >KEYNAME.pem ), specifying it when running an instance ( euca-run-instance -k KEYNAME ), and then logging in using the key generated ( ssh -i KEYNAME.pem root@INSTANCE-IP ). You'll probably have to change the permissions on that .pem file before SSH will allows you to use it ( chmod 0600 KEYNAME.pem ). The instance obtains the public portion of the key from the cloud at boot time and adds it to the authorized_keys file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM