diff --git a/roles/ssh_hardening/tasks/hardening.yml b/roles/ssh_hardening/tasks/hardening.yml index 5951a7da..e3488792 100644 --- a/roles/ssh_hardening/tasks/hardening.yml +++ b/roles/ssh_hardening/tasks/hardening.yml @@ -67,7 +67,7 @@ mode: "0600" owner: "{{ ssh_owner }}" group: "{{ ssh_group }}" - validate: "{{ sshd_path }} -G -C user=root -C host=localhost -C addr=localhost -C lport=22 -f %s" + validate: "{{ sshd_path }} -G -f %s" notify: Restart sshd when: ssh_server_hardening | bool