ssh is started before cloud-init completed
Bug #1633453 reported by
Vincent Bernat
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hello,
Previously, ssh was only started after cloud-init finished configuring the host. In Yakkety, it is quite easy to log into a machine with SSH while cloud-init is still running. This enables to log as root or to run apt-get update while cloud-init is still finishing to write system configuration. This is annoying with automation.
With Xenial, this never happens, but with Yakkety, this happens all the time.
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
I'm not sure how this would occur in xenial or yakkety. sshd-keygen. service sshd.service
cloud-init.service runs:
Before=
Before=
cloud-init.service is what runs the 'ssh' config module, which generates ssh host keys and disables root. And 'ssh' runs after 'user-groups', which sets the user-groups. So I'm not sure how this could happen. I'm not implying that it does not happen, but not sure how.