Disable RSA for old SSH versions

closes #10
This commit is contained in:
Sven Velt 2021-10-19 10:24:47 +02:00
parent ed24147b3a
commit 7813933ad6
5 changed files with 9 additions and 9 deletions

View file

@ -41,14 +41,12 @@
####################
- name: "Hostkeys: Disable (EC)DSA"
- name: "Hostkeys: Disable (EC)DSA (and maybe RSA)"
lineinfile:
dest: "{{ ssh_hardening_sshd_config }}"
regexp: '(?i)\s*#*\s*hostkey.*{{ item }}_key'
state: absent
loop:
- dsa
- ecdsa
loop: "{{ ssh_hardening_hostkeys_all|difference(ssh_hardening_hostkeys) }}"
notify: Restart SSH

View file

@ -1,4 +0,0 @@
---
ssh_hardening_hostkeys:
- ed25519

View file

@ -1,6 +1,9 @@
# 6.6: Ubuntu 14
# 7.2: Ubuntu 16
ssh_hardening_hostkeys:
- ed25519
ssh_hardening_opts:
KexAlgorithms:
- curve25519-sha256@libssh.org

View file

@ -1,6 +1,9 @@
# 7.4: Debian 9
# 7.4: RedHat/CentOS 7
ssh_hardening_hostkeys:
- ed25519
ssh_hardening_opts:
KexAlgorithms:
- curve25519-sha256

View file

@ -1,4 +1,4 @@
# 8.2: Ubuntu 10
# 8.2: Ubuntu 20.04
# 8.4: Debian 11 & Suse 15.3
# 8.6: Fedora 34 (no diff in *hardened policy* to 8.4)
# 8.7: Fedora 35 (no diff in *hardened policy* to 8.4)