ComputerManagementDsc icon indicating copy to clipboard operation
ComputerManagementDsc copied to clipboard

SSHConfiguration: New resource/s proposal

Open kilasuit opened this issue 1 year ago • 4 comments

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 avatar Sep 30 '24 18:09 kilasuit

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

kilasuit avatar Sep 30 '24 18:09 kilasuit

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

Thoughts on this?

kilasuit avatar Oct 03 '24 07:10 kilasuit

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

Borgquite avatar Oct 03 '24 15:10 Borgquite

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.

denelon avatar Oct 03 '24 20:10 denelon