mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-08-07 03:36:19 +02:00
improve allow_deny_users_groups
This commit is contained in:
@@ -44,10 +44,33 @@ sshd_config:
|
||||
Subsystem: "sftp /usr/lib/openssh/sftp-server"
|
||||
UsePAM: 'yes'
|
||||
UseDNS: 'yes'
|
||||
# set as string
|
||||
AllowUsers: 'vader@10.0.0.1 maul@evil.com sidious luke'
|
||||
# or set as list
|
||||
AllowUsers:
|
||||
- vader@10.0.0.1
|
||||
- maul@evil.com
|
||||
- sidious
|
||||
- luke
|
||||
# set as string
|
||||
DenyUsers: 'yoda chewbaca@112.10.21.1'
|
||||
# or set as list
|
||||
DenyUsers:
|
||||
- yoda
|
||||
- chewbaca@112.10.21.1
|
||||
# set as string
|
||||
AllowGroups: 'wheel staff imperial'
|
||||
# or set as list
|
||||
AllowGroups:
|
||||
- wheel
|
||||
- staff
|
||||
- imperial
|
||||
# set as string
|
||||
DenyGroups: 'rebel'
|
||||
# or set as list
|
||||
DenyGroups:
|
||||
- rebel
|
||||
- badcompany
|
||||
matches:
|
||||
sftp_chroot:
|
||||
type:
|
||||
|
||||
Reference in New Issue
Block a user