feat(security): tightened files mode for ssh configuration and enabled ipv6 on ssh, along with an increase on max sessions from 3 to 5
This commit is contained in:
parent
3acdd804df
commit
b7ba39bce9
2 changed files with 6 additions and 6 deletions
|
@ -35,17 +35,17 @@
|
|||
ansible.builtin.template:
|
||||
src: ../templates/openssh-server/sshd_config.j2
|
||||
dest: /etc/ssh/sshd_config
|
||||
mode: '0644'
|
||||
mode: '0600'
|
||||
- name: '[ssh] ensure directories exist'
|
||||
ansible.builtin.file:
|
||||
path: /etc/ssh/sshd_config.d
|
||||
state: directory
|
||||
mode: '0755'
|
||||
mode: '0700'
|
||||
- name: '[ssh] setup sshd_config.d'
|
||||
ansible.builtin.template:
|
||||
src: ../templates/openssh-server/sshd_config.d/encryption.conf.j2
|
||||
dest: /etc/ssh/sshd_config.d/encryption.conf
|
||||
mode: '0644'
|
||||
mode: '0600'
|
||||
- name: '[ssh] remove low security keys'
|
||||
ansible.builtin.file:
|
||||
path: "/etc/ssh/{{ item }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue