diff options
author | Alain Lamar <alain_lamar@yahoo.de> | 2018-01-01 12:43:23 +0100 |
---|---|---|
committer | Alain Lamar <alain_lamar@yahoo.de> | 2018-01-01 12:43:23 +0100 |
commit | 33346b68ed7155478fd435af963c2eeaf63a5f8a (patch) | |
tree | cf2799d8134092a391bac630f9446c1aeb122304 /templates/service/ssh/allow-users/node.def | |
parent | 0ed8665760ac9cda8e910818f2d1234bd4b7477e (diff) | |
download | vyatta-cfg-system-33346b68ed7155478fd435af963c2eeaf63a5f8a.tar.gz vyatta-cfg-system-33346b68ed7155478fd435af963c2eeaf63a5f8a.zip |
T122: Add config nodes for user/group access controls in sshd_config
Diffstat (limited to 'templates/service/ssh/allow-users/node.def')
-rw-r--r-- | templates/service/ssh/allow-users/node.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/service/ssh/allow-users/node.def b/templates/service/ssh/allow-users/node.def new file mode 100644 index 00000000..2052bf69 --- /dev/null +++ b/templates/service/ssh/allow-users/node.def @@ -0,0 +1,11 @@ +type: txt +help: Configure sshd_config access control for allowed 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 \ +AllowUsers $VAR(@)' /etc/ssh/sshd_config + +delete: sudo sed -i -e '/^AllowUsers $VAR(@)$/d' /etc/ssh/sshd_config + +update: sudo sed -i -e '/^AllowUsers.*$/c \ +AllowUsers $VAR(@)' /etc/ssh/sshd_config |