From 5faa34e4a4e4e51628518dbd2f48b85bc7436de6 Mon Sep 17 00:00:00 2001 From: pr3c0g Date: Mon, 12 Aug 2024 14:27:55 +0100 Subject: [PATCH] Make sure `/etc/ssh/sshd_config.d/` exists before adding a config file to it. --- macOS-13-(Ventura)-&-14-(Sonoma).md | 1 + 1 file changed, 1 insertion(+) diff --git a/macOS-13-(Ventura)-&-14-(Sonoma).md b/macOS-13-(Ventura)-&-14-(Sonoma).md index 8b2e426..9bccd6a 100644 --- a/macOS-13-(Ventura)-&-14-(Sonoma).md +++ b/macOS-13-(Ventura)-&-14-(Sonoma).md @@ -19,6 +19,7 @@ mv /etc/ssh/moduli.safe /etc/ssh/moduli ``` 4. Restrict supported key exchange, cipher, and MAC algorithms ```bash +[ -d /etc/ssh/sshd_config.d ] || /bin/mkdir etc/ssh/sshd_config.d echo ' # Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com # hardening guide.