Skip to content

INCLUDE subconfigs doesn't work #2398

@MrMarvel

Description

@MrMarvel

Summary of the new feature / enhancement

Implementation of Include keyword

I would like to ask about this feature.
I have my subconfig like C:\ProgramData\ssh\sshd_config.d\my_config.conf to override base config like on linux. But it doesn't seem to work on windows.
sshd_config file:

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

Include __PROGRAMDATA__/ssh/ssh_config.d/*.conf

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

C:\ProgramData\ssh\sshd_config.d\my_config.conf:

PasswordAuthentication no

I still can connect by password
There is no overrided info about it in docs https://github.com/PowerShell/Win32-OpenSSH/wiki/sshd_config
but base OpenBSD manual allows Include subconfigs.

Proposed technical implementation details (optional)

Implementation of Include keyword

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions