Disable root in SSH config and playbook

This commit is contained in:
Benjamin Hays 2024-01-27 19:36:18 -05:00
parent 6d50815efd
commit 5b12d9e114
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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