sshd: Remove some unused and potentially dangerous features
This commit is contained in:
parent
282fbcb932
commit
a745cdb3ee
1 changed files with 14 additions and 0 deletions
|
@ -1,6 +1,20 @@
|
|||
---
|
||||
|
||||
- name: disable AllowAgentForwarding
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?AllowAgentForwarding'
|
||||
line: 'AllowAgentForwarding no'
|
||||
validate: "sshd -t -f %s"
|
||||
notify: restart sshd
|
||||
|
||||
- name: disable ChallengeResponseAuthentication
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?ChallengeResponseAuthentication'
|
||||
line: 'ChallengeResponseAuthentication no'
|
||||
validate: "sshd -t -f %s"
|
||||
notify: restart sshd
|
||||
|
||||
# based on mozilla recommended settings
|
||||
# https://infosec.mozilla.org/guidelines/openssh.html
|
||||
|
|
Loading…
Add table
Reference in a new issue