Skip to content

ssh_utils.py: ignore when sshd_config options are not key/value pairs

BZ: 2002302
TESTED: by me
BREW: 39622506

commit 2ce857248162957a785af61c135ca8433fdbbcde
Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Date:   Wed Sep 8 02:08:36 2021 +0200

    ssh_utils.py: ignore when sshd_config options are not key/value pairs (#1007)

    As specified in #LP 1845552,
    In cloudinit/ssh_util.py, in parse_ssh_config_lines(), we attempt to
    parse each line of sshd_config. This function expects each line to
    be one of the following forms:

        \# comment
        key value
        key=value

    However, options like DenyGroups and DenyUsers are specified to
    *optionally* accepts values in sshd_config.
    Cloud-init should comply to this and skip the option if a value
    is not provided.

    Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>

Merge request reports