简体   繁体   English

Eucalyptus 3.4.2 CentOS 6演示根密码

[英]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. 我安装了Eucalyptus的cloud-in-a-box / fastrack,并能够创建实例并登录到它。 But when trying sudo, sudo su - or login in as root I'm asked for a password. 但是,当尝试sudo,sudo su或以root用户身份登录时,系统会要求您输入密码。 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. 它仅使用云用户帐户,没有root访问权限,也不允许sudo。

There are other starter images available that can be "installed" that have sudo as root enabled. 还有其他可以“安装”的启动程序映像,这些映像启用了sudo作为root用户。 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. 注意,其他一些入门映像具有不同的帐户(不是云用户),例如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: 如果您不知道要使用哪个帐户,只需尝试以root用户身份进入ssh实例,它通常会返回一条消息,告诉您:

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 ). 无论如何,建议的登录实例的方法是创建一个SSH密钥( euca-create-keypair KEYNAME >KEYNAME.pem ),在运行实例时指定它( euca-run-instance -k KEYNAME ),然后使用生成的密钥( 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 ). 您可能必须更改该.pem文件的权限,然后SSH才能允许您使用它( 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. 实例在启动时从云中获取密钥的公共部分,并将其添加到authorized_keys文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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