cc_ssh: sshd is not enabled on *BSD
Bug #1989743 reported by
Mina Galić
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
Most BSD systems don't come with many services enabled, so taking a standard FreeBSD VM image and putting cloud-init on it will generate SSH keys, but it won't enable sshd
I reckon we can use distros.rhel_util to set `sshd_enable=YES`
We can then start the service or rely on a reboot.
Changed in cloud-init: | |
status: | New → Triaged |
Changed in cloud-init: | |
importance: | Undecided → Medium |
To post a comment you must log in.
the following logic in `handle_ ssh_pwauth( )`:
if not uses_systemd:
LOG. debug(
"Writing config 'ssh_pwauth: %s'. SSH service '%s'"
pw_auth,
service,
restart_ ssh = False
" will not be restarted because it is not running or not"
" available.",
)
could be enhanced to enable the service if the status fails
But perhaps this would need a flag somewhere.