aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/sshd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/sshd.yml')
-rw-r--r--roles/space_server/tasks/sshd.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/space_server/tasks/sshd.yml b/roles/space_server/tasks/sshd.yml
index 63f3367..176ee5a 100644
--- a/roles/space_server/tasks/sshd.yml
+++ b/roles/space_server/tasks/sshd.yml
@@ -36,9 +36,11 @@
regexp: '{{ item.regexp }}'
line: '{{ item.line }}'
with_items:
+ - regexp: '^[# ]*PermitRootLogin'
+ line: 'PermitRootLogin no'
- regexp: '^PasswordAuthentication'
line: 'PasswordAuthentication no'
- - regexp: '^#*GSSAPIAuthentication'
+ - regexp: '^[# ]*GSSAPIAuthentication'
line: 'GSSAPIAuthentication no'
notify:
- restart sshd