blob: 2052bf696fa938dd5640123fa77fe8fbdbc317f3 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|