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
......@@ -47,5 +47,14 @@
MaxAuthTries 3
TCPKeepAlive no
{{ "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:
- restart sshd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment