disable_root: 1 but root can still log in
Bug #1737130 reported by
S.Polat
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
In my cloud.cfg I have tried:
disable_root: true
disable_root: 1
disable_root: True
But root is still able to log in via ssh.
RHEL 7.3
Openstack 10
cloud-init 0.7.9
To post a comment you must log in.
from doc/examples/ cloud-config. txt
(which should be moved over to readthedocs and improved):
# disable ssh access as root.
# if you want to be able to ssh in to the system as the root user
# rather than as the 'ubuntu' user, then you must set this to false
# default: true
disable_root: false
to *disable* root access you need to turn that to true (the default value).
to *enable* you would turn it to false.
I've just verified that by default on Ubuntu ssh root@ willi give you the "log in as ubuntu" message.
If you provide:
#cloud-config
disable_root: false
then you'll be able to straight in as root with the keys you provdied.
cloud-init does not currently manipulate sshd_config PermitRootLogin