Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Password - v0.8.0-rc2 #1467

Closed
wahmedswl opened this issue Dec 15, 2016 · 7 comments

Comments

@wahmedswl
Copy link

commented Dec 15, 2016

RancherOS Version: (ros os version)
Rancher-v0.8.0-rc2
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Hyper-V

Hi,
I have installed RancherOS to disk and now i cannot login to RancherOS. I have created minimal cloud-config without SSH as i was previously able to login to RancherOS with user = rancher and empty password in v0.7.1. But, now i am not able to, please provider default password. I have tried rancher/rancher.

Thanks

@rfranke

This comment has been minimized.

Copy link

commented Dec 15, 2016

A default password is bad (see #1453). You should add an SSH key to cloud-config.yml. You might create a key pair using PuTTY ...

Alternatively install DockerToolbox -- start the installer from the command line with

 DockerToolbox-<version>.exe /COMPONENTS="Docker,DockerMachine"

to disable installation of VirtualBox when using Hyper-V. The command

 docker-machine create --driver hyperv --hyperv-boot2docker-url https://releases.rancher.com/os/latest/rancheros.iso <MACHINE-NAME>

will create a key pair for you (~/.docker/machine/machines/<MACHINE-NAME>/). The creation hangs after booting the machine (#427, #442), but the machine is up and running. You can insert the public key into your cloud-config.yml and continue on the Hyper-V console.

@killerspaz

This comment has been minimized.

Copy link

commented Dec 15, 2016

For the time being, it appears you can supply rancher.password in the cloud-config.

You can find the info tucked away here: https://docs.rancher.com/os/system-services/built-in-system-services/#console

@SvenDowideit

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2016

I've gotten into the habit of using ros install -d /dev/sda --append "rancher.password=mySecret" on my local VM's - but at some point soon I'd like to see ros install -d /dev/sda -c https://roast.link/cloud-config.yml work.

but no, we can't go back to setting a password by default - RancherOS is used on too many internet accessible hosts.

@wahmedswl

This comment has been minimized.

Copy link
Author

commented Dec 16, 2016

@SvenDowideit Thanks, this worked.

@wahmedswl wahmedswl closed this Dec 16, 2016

@pwFoo

This comment has been minimized.

Copy link

commented Jan 18, 2017

@deniseschannon @SvenDowideit
Should be added to installation section of documentation.

ros install -d /dev/sda --append "rancher.password=mySecret"

Will rancher.password work inside of cloud-config.yml too?

@TheAifam5

This comment has been minimized.

Copy link

commented Feb 5, 2017

Actually "rancher.password" you can find here: https://docs.rancher.com/os/system-services/built-in-system-services/

@SvenDowideit

This comment has been minimized.

Copy link
Contributor

commented Feb 6, 2017

@pwFoo yes, but we're thinking very strongly of removing it in future - #1563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.