dsccommunity / ComputerManagementDsc

DSC resources for for configuration of a Windows computer. These DSC resources allow you to perform computer management tasks, such as renaming the computer, joining a domain and scheduling tasks as well as configuring items such as virtual memory, event logs, time zones and power settings.
https://dsccommunity.org
MIT License
309 stars 82 forks source link

SSHConfiguration: New resource/s proposal #436

Open kilasuit opened 1 month ago

kilasuit commented 1 month ago

Resource proposal

Add in 1/many resources that configures SSH and other needed aspects of SSH Server and properties like allowed keys etc

Proposed properties

Property Type qualifier Data type Description Default value Allowed values
PropertyName Key String Detailed description None None

Special considerations or limitations

Not sure if there is an existing resource/s out there for this Needed for Server 2025 and below Should reduce all admin overhead Allow flexibility in how things like SSH Config is recommended in multiple scenarios

kilasuit commented 1 month ago

I will come and amend the properties in the coming days unless anyone else wants to chip in with them

kilasuit commented 1 month ago

Or do we create this as an SSHConfigurationDSC module instead hosted in the DSCCommunity Org

Thoughts on this?

Borgquite commented 1 month ago

There's an old DSC 1.1 resource for Linux

https://learn.microsoft.com/en-us/powershell/dsc/reference/resources/linux/lnxsshauthorizedkeysresource?view=dsc-1.1

denelon commented 1 month ago

Thinking about the future with DSC v3, we might want to consider doing this as a part of SSH to make it discoverable during the winget configure export flow we're working on over at winget-cli. I'd be curious about what @SteveL-MSFT thinks as well.