diff options
author | Alain Lamar <alain_lamar@yahoo.de> | 2018-01-02 19:12:43 +0100 |
---|---|---|
committer | Alain Lamar <alain_lamar@yahoo.de> | 2018-01-02 19:12:43 +0100 |
commit | ccbfc90fdb6239d30613fb28b76144c03c2d9809 (patch) | |
tree | 73ba3f925472d44499695942a2b595c286e323c6 | |
parent | f56e7154b9dfb36305cfb0c36998d245c26ad343 (diff) | |
download | vyatta-cfg-system-ccbfc90fdb6239d30613fb28b76144c03c2d9809.tar.gz vyatta-cfg-system-ccbfc90fdb6239d30613fb28b76144c03c2d9809.zip |
T122: Added a config node to implement sshd_config's DenyGroups
-rw-r--r-- | templates/service/ssh/access-control/deny-groups/node.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/service/ssh/access-control/deny-groups/node.def b/templates/service/ssh/access-control/deny-groups/node.def new file mode 100644 index 00000000..c2c8dcab --- /dev/null +++ b/templates/service/ssh/access-control/deny-groups/node.def @@ -0,0 +1,11 @@ +type: txt +help: Configure sshd_config access control for disallowed 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 \ +DenyGroups $VAR(@)' /etc/ssh/sshd_config + +delete: sudo sed -i -e '/^DenyGroups $VAR(@)$/d' /etc/ssh/sshd_config + +update: sudo sed -i -e '/^DenyGroups.*$/c \ +DenyGroups $VAR(@)' /etc/ssh/sshd_config |