Skip to content
Snippets Groups Projects
Commit d530f25c authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: disable insecure SSH algorithms (host key algos, KEX algos, ciphers)

parent 61af71b6
No related branches found
No related tags found
No related merge requests found
...@@ -47,5 +47,14 @@ ...@@ -47,5 +47,14 @@
MaxAuthTries 3 MaxAuthTries 3
TCPKeepAlive no TCPKeepAlive no
{{ "PasswordAuthentication no" if ansible_os_family == "Debian" else "PasswordAuthentication yes" }} {{ "PasswordAuthentication no" if ansible_os_family == "Debian" else "PasswordAuthentication yes" }}
# disable weak host key algorithm ssh-dss (Digital Signature Algorithm (DSA) / Digital Signature Standard (DSS))
# NVT OID: 1.3.6.1.4.1.25623.1.0.117687
HostKeyAlgorithms -ssh-dss
# disable weak KEX algorithms
# NVT OID: 1.3.6.1.4.1.25623.1.0.150713
KexAlgorithms -diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
# disable weak Ciphers (crypto algorithms)
# NVT OID: 1.3.6.1.4.1.25623.1.0.105611
Ciphers -3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc
notify: notify:
- restart sshd - restart sshd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment