summaryrefslogtreecommitdiff
path: root/templates/service/ssh/deny-users/node.def
blob: a6426f90385dd0980b46f8a066ebf4810c6c5f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
type: txt
help: Configure sshd_config access control for disallowed users.
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 users can be specified as a comma-separated list.

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

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

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