forked from PowerShell/DSC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsshd-subsystemList.dsc.resource.json
More file actions
73 lines (73 loc) · 2.65 KB
/
sshd-subsystemList.dsc.resource.json
File metadata and controls
73 lines (73 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
"type": "Microsoft.OpenSSH.SSHD/SubsystemList",
"description": "Manage SSH Server Subsystem keyword (accepts multiple entries)",
"version": "0.1.0",
"condition": "[not(equals(tryWhich('sshd'), null()))]",
"get": {
"executable": "sshdconfig",
"args": [
"export",
{
"jsonInputArg": "--input",
"mandatory": true
}
]
},
"set": {
"executable": "sshdconfig",
"args": [
"set",
"-s",
"sshd-config-repeat-list",
{
"jsonInputArg": "--input",
"mandatory": true
}
]
},
"schema": {
"embedded": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "sshdconfig.subsystem",
"type": "object",
"properties": {
"_purge": {
"type": "boolean",
"description": "Whether to clear any existing subsystem entries not specified in the 'subsystem' array",
"default": false
},
"_metadata": {
"type": "object",
"properties": {
"filepath": {
"type": "string",
"description": "Path to sshd_config file"
}
}
},
"subsystem": {
"type": "array",
"description": "Array of subsystem definitions with name and command value",
"items": {
"type": "object",
"description": "Subsystem definition with name (subsystem identifier) and value (command path and arguments)",
"properties": {
"name": {
"type": "string",
"description": "The subsystem name (e.g., 'sftp', 'powershell')"
},
"value": {
"type": "string",
"description": "The subsystem command path and arguments (e.g., '/usr/bin/sftp' or 'c:/progra~1/powershell/7/pwsh.exe -sshs -NoLogo')"
}
},
"required": ["name"],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
}
}