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