RancherOS Install to Hard Disk - Can't Login

3,514 views
Skip to first unread message

layer4down

unread,
May 25, 2015, 12:54:06 PM5/25/15
to ranc...@googlegroups.com
Hello,

  I'm trying to install RancherOS to a HDD. After successfully doing so, I am unable to login with rancher/rancher. I'm not familiar enough with logging in using the RSA public key (using SecureCRT) although I have tried. I've even gone so far as to copy the /etc/passwd and /etc/shadow files Linux user credentials from the live boot CD to the system-docker/../etc/.. directories on the target disk, but still no joy (with my own username/password or rancher/rancher). Can someone point me in the right direction here? Maybe even just the cloud-config syntax to add users would be great. Thanks in advance!

wlan0

unread,
May 27, 2015, 5:52:53 PM5/27/15
to ranc...@googlegroups.com
Hey layer4down,

Can you show me your current cloud-config.yml file that you use to setup SSH keys?

Here's documentation for installing rancherOS to disk http://rancherio.github.io/os/docs/running-rancheros/server/install-to-disk/

Here's a valid cloud-config file.

```
#cloud-config

ssh_authorized_keys: 
- ssh-rsa AAA... user@host
```

Once you create a public-key/private-key pair, copy the public key to cloud-config following the example above. 

Then ssh into the newly installed rancherOS by doing

ssh -i `path-to-private-key` rancher@hostname

layer4down

unread,
May 27, 2015, 8:57:51 PM5/27/15
to ranc...@googlegroups.com
wlan0

Thank you for taking an interest in my issue. After stepping away then coming back to re-read the docs, I realized that I was misinterpreting the context of some of the instructions! I'm now able to login with the via my SSH private key, thank you! Per chance, might you be able to provide the syntax for adding a new superuser to the cloud config file? Unless there's an easier way to gain SU privileges on the new HDD install?

wlan0

unread,
Jun 1, 2015, 2:18:48 PM6/1/15
to ranc...@googlegroups.com
Currently, rancheros does not have support for adding users via cloud-config. The default user can gain admin privileges without a password.

Brandon Hunter

unread,
Jun 2, 2015, 5:59:29 PM6/2/15
to wlan0, ranc...@googlegroups.com
Ahh well that would explain the many failures then lol. Thanks so much! Would rate ya if I could 😉
--
You received this message because you are subscribed to a topic in the Google Groups "Rancher" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rancherio/AqeFm6yuFJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rancherio+...@googlegroups.com.
To post to this group, send email to ranc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rancherio/18ad1e42-a4a5-4fc0-8629-a6e6b2e7b83f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

layer4down

unread,
Jun 5, 2015, 7:39:07 PM6/5/15
to ranc...@googlegroups.com
Hopefully my folly will be useful to someone else. Once you follow all the instructions as explained, be sure to use the passwd command to set your own password for the rancher account (using 'rancher' as the old password). You will indeed be a superuser. Hopefully that's useful to someone else.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages