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

2,217 views
Skip to first unread message

Shanmugadhasan Saravanabavanantharajah

unread,
May 4, 2014, 9:41:31 PM5/4/14
to euca-...@eucalyptus.com
Hi,

After I launched the new instance, I click the connect and I got the following popup

To connect to your instance, be sure security group "TSecGroup" has TCP port 22 open to inbound traffic and then perform the following steps (these instructions do not apply if you did not select a key pair when you launched this instance):

  1. Open an SSH terminal window.
  2. Change your directory to the one where you stored your key file "TKeyPair.pem"
  3. Run the following command to set the correct permissions for your key file:
    chmod 400 TKeyPair.pem
  4. Connect to your instance via its public IP address by running the following command: ssh -i TKeyPair.pem ro...@10.10.30.120
I did as per the popup message.

Then I got the following response on the terminal.

[scloud@cloud52 credentials]$ ssh -i TKeyPair.pem ro...@10.10.30.120
Please login as the user "cloud-user" rather than the user "root".

Connection to 10.10.30.120 closed.

Is it a bug???

Mayur Patil

unread,
May 4, 2014, 9:53:43 PM5/4/14
to Shanmugadhasan Saravanabavanantharajah, Eucalyptus Users
Hi,

   Its not a bug you just have to login with cloud-user as instructed here

              ssh -i KeyPair.pem cloud-user@10.10.30.120

   and you will be in your instance.  

   If you want to be the super user of instance after login, one of these two commands will work

1.   su -   

2.   sudo su -

  Hope this helps,

  Thanks !

--
Cheers,
Mayur.

Shanmugadhasan Saravanabavanantharajah

unread,
May 4, 2014, 11:40:24 PM5/4/14
to euca-...@eucalyptus.com
Hi,

I tried the way you requested, it is asking the password for cloud-user.
where I can find my cloud-user password for this particular instance.

[scloud@cloud52 credentials]$ ssh -i TKeyPair.pem cloud...@10.10.30.120
Last login: Mon May  5 12:15:11 2014 from 10.10.30.120
[cloud-user@ip-172-31-254-143 ~]$ sudo su-
[sudo] password for cloud-user:
Sorry, try again.
[sudo] password for cloud-user:
Sorry, try again.
[sudo] password for cloud-user:
Sorry, try again.
sudo: 3 incorrect password attempts
[cloud-user@ip-172-31-254-143 ~]$ su -
Password:
su: incorrect password

Hirantha Wijayawardena

unread,
May 4, 2014, 11:47:43 PM5/4/14
to Shanmugadhasan Saravanabavanantharajah, euca-...@eucalyptus.com
First you must login with ssh -i TKeyPair.pem cloud...@10.10.30.120. Once you logged in, then you type "sudo -i" to get into the root.



--
You received this message because you are subscribed to the Google Groups "Eucalyptus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to euca-users+...@eucalyptus.com.
To post to this group, send email to euca-...@eucalyptus.com.
Visit this group at http://groups.google.com/a/eucalyptus.com/group/euca-users/.



--
Regards,
Hirantha
http://hirantha.wikidot.com

sk abdul

unread,
May 14, 2014, 10:29:08 AM5/14/14
to euca-...@eucalyptus.com, Shanmugadhasan Saravanabavanantharajah
Hi Shanmugadhasan and harinath,

i have the same problem. I am successful to connect to the instance but unfortunately can increase my privileges to root. 
Googled a lot for default password but not successful. Hari can you be helpful here if you know any default password?

Wang He

unread,
Oct 12, 2015, 5:33:10 AM10/12/15
to Eucalyptus Users, sarava...@gmail.com
Hi, 

I have the same problem also. Did you solve it already? Where can I find the password of the instance? Thanks in advance!

SHINDE TUSHAR ASHOK 14MCS1048

unread,
Jan 16, 2016, 9:51:13 AM1/16/16
to Eucalyptus Users
Sir,

I tried to work with "sudo root" command but still it ask's for password. I'm attaching the screenshot, please view and reply me soon.

and that too it is asking me to login with "cloud-user" name not "root"


thanks in advance


Screenshot.png

Carroll, Jim

unread,
Jan 19, 2016, 1:05:08 PM1/19/16
to SHINDE TUSHAR ASHOK 14MCS1048, Eucalyptus Users
Please describe the following:


1. What version of Eucalyptus are you using?
2. What image (e.g., CentOS, RHEL, Ubuntu, etc) and version are you using, and where did you get it from?

Cheers,

jc
[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]


--
You received this message because you are subscribed to the Google Groups "Eucalyptus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to euca-users+...@eucalyptus.com<mailto:euca-users+...@eucalyptus.com>.
To post to this group, send email to euca-...@eucalyptus.com<mailto:euca-...@eucalyptus.com>.
Visit this group at https://groups.google.com/a/eucalyptus.com/group/euca-users/.

Matt Clark

unread,
Jan 19, 2016, 11:14:11 PM1/19/16
to Carroll, Jim, SHINDE TUSHAR ASHOK 14MCS1048, Eucalyptus Users
Not sure if this is relevant, but if cloud-init is installed on the images you can try enabling 'root' login by passing 'user data' at instance run time. 
For example in the run-instances request you could pass the following:

#cloud-config
disable_root: false
...or...
disable_root: 0

See "euca-run-instances -h" help to show the several options for passing userdata. 
Cheers, 
-Matt


To unsubscribe from this group and stop receiving emails from it, send an email to euca-users+...@eucalyptus.com.
To post to this group, send email to euca-...@eucalyptus.com.



--
Matt Clark - Software Quality Ninja 
Eucalyptus Systems
www.eucalyptus.com

Reply all
Reply to author
Forward
0 new messages