summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-groups/node.def
blob: 2d6aa75ba1a6518b73ec9d62526255f76f25f13c (plain)
1
2
3
4
5
6
7
8
9
10
11
type: txt
help: Configure sshd_config access control for allowed groups.
comp_help: The SSH user and group access control directives (allow/deny) are processed in the following order: DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. Multiple groups can be specified as a comma-separated list.

create: sudo sed -i -e '$ a \
AllowGroups $VAR(@)' /etc/ssh/sshd_config

delete: sudo sed -i -e '/^AllowGroups $VAR(@)$/d' /etc/ssh/sshd_config

update: sudo sed -i -e '/^AllowGroups.*$/c \
AllowGroups $VAR(@)' /etc/ssh/sshd_config