Make sure /etc/ssh/sshd_config.d/ exists before adding a config file to it.

pr3c0g 2024-08-12 14:27:55 +01:00
parent 88d7b0ece7
commit 5faa34e4a4

@ -19,6 +19,7 @@ mv /etc/ssh/moduli.safe /etc/ssh/moduli
``` ```
4. Restrict supported key exchange, cipher, and MAC algorithms 4. Restrict supported key exchange, cipher, and MAC algorithms
```bash ```bash
[ -d /etc/ssh/sshd_config.d ] || /bin/mkdir etc/ssh/sshd_config.d
echo ' echo '
# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com # Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com
# hardening guide. # hardening guide.