reodered and added functionality
This commit is contained in:
27
roles/base/files/system_setup/sshd_custom.conf
Normal file
27
roles/base/files/system_setup/sshd_custom.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
PermitRootLogin prohibit-password
|
||||
MaxAuthTries 3
|
||||
|
||||
PubkeyAuthentication yes
|
||||
|
||||
PasswordAuthentication no
|
||||
|
||||
ChallengeResponseAuthentication no
|
||||
|
||||
UsePAM yes
|
||||
|
||||
X11Forwarding no
|
||||
PrintMotd no
|
||||
PrintLastLog no
|
||||
|
||||
AllowUsers rene
|
||||
Match Address 192.168.1.240
|
||||
AllowUsers root,rene
|
||||
|
||||
Match User root
|
||||
PasswordAuthentication no
|
||||
|
||||
Match User rene
|
||||
PasswordAuthentication no
|
||||
|
||||
Match Host *
|
||||
MaxAuthTries 1
|
||||
Reference in New Issue
Block a user