Skip to content

Commit

Permalink
Set SSH_USE_STRONG_RNG for sshd (RH)
Browse files Browse the repository at this point in the history
Fixes #70
  • Loading branch information
pyllyukko committed Nov 14, 2023
1 parent 0a78611 commit 39f7bcb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/services-ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@
state: absent
regexp: '^[0-9]{14}\s+[0-9]+\s+[0-9]+\s+[0-9]+\s+2047\b'
backup: true
- name: Set SSH_USE_STRONG_RNG for sshd (RH)
when: ansible_os_family == "RedHat"
become: true
tags:
- configuration
- ssh
- centos
ansible.builtin.lineinfile:
path: /etc/sysconfig/sshd
state: present
regexp: '^SSH_USE_STRONG_RNG=[0-9]+$'
line: 'SSH_USE_STRONG_RNG=32'
backup: true

- name: Print Lynis score for SSH hardening
become: true
Expand Down

0 comments on commit 39f7bcb

Please sign in to comment.