cc_ssh: sshd is not enabled on *BSD

Bug #1989743 reported by Mina Galić
8
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.

Brett Holman (holmanb)
Changed in cloud-init:
status: New → Triaged
James Falcon (falcojr)
Changed in cloud-init:
importance: Undecided → Medium
Revision history for this message
Mina Galić (minagalic) wrote :

the following logic in `handle_ssh_pwauth()`:

        if not uses_systemd:
            LOG.debug(
                "Writing config 'ssh_pwauth: %s'. SSH service '%s'"
                " will not be restarted because it is not running or not"
                " available.",
                pw_auth,
                service,
            )
            restart_ssh = False

could be enhanced to enable the service if the status fails
But perhaps this would need a flag somewhere.

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.