Skip to content

[hostcfgd] hostcfgd doesn't reset /etc/ssh/sshd_config to default after device reboot. #323

@wait2035

Description

@wait2035

I'm using latest hostcfgd code to try something on vs platform.

I changed the ssh-server config db table refer to sonic-ssh-server.yang, listening port was modified to 345.

hostcfgd modified /etc/ssh/sshd_config file as expected.

Then, I didn't do a 'save' operation, then restart the device, not as expected, device didn't reset /etc/ssh/sshd_config to default (reset port to 22).

However, the old config before reboot is still used by sshd.

I wonder that is't normal case ? Or should SONiC reset /etc/ssh/sshd_config to default.

And another question is there any plan to support table/field remove operations (hdel/del in redis) for SshServer in hostcfgd ?

I appreciate any relevant replies and suggestions.

Best Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions