Disable root in SSH config and playbook
This commit is contained in:
parent
6d50815efd
commit
5b12d9e114
@ -1,5 +1,5 @@
|
|||||||
- hosts: linux
|
- hosts: linux
|
||||||
remote_user: root
|
remote_user: bhays
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -13,7 +13,7 @@ MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@op
|
|||||||
LogLevel VERBOSE
|
LogLevel VERBOSE
|
||||||
|
|
||||||
#LoginGraceTime 2m
|
#LoginGraceTime 2m
|
||||||
PermitRootLogin yes
|
PermitRootLogin no
|
||||||
#StrictModes yes
|
#StrictModes yes
|
||||||
MaxAuthTries 5
|
MaxAuthTries 5
|
||||||
MaxSessions 8
|
MaxSessions 8
|
||||||
|
Loading…
Reference in New Issue
Block a user