From bb64df98e07e92ce184f604b37d8b36c73f64b17 Mon Sep 17 00:00:00 2001 From: William Davis Date: Thu, 28 Dec 2023 02:34:04 -0500 Subject: [PATCH] added line to start openssh server after stopping, and update for Hardened OpenSSH Server v9.4 (version 2) --- macOS-13-(Ventura)-&-14-(Sonoma).md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macOS-13-(Ventura)-&-14-(Sonoma).md b/macOS-13-(Ventura)-&-14-(Sonoma).md index 5e6a7ae..b12c848 100644 --- a/macOS-13-(Ventura)-&-14-(Sonoma).md +++ b/macOS-13-(Ventura)-&-14-(Sonoma).md @@ -24,7 +24,7 @@ sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_ed25519_key/HostKey \/etc\/ssh\/ echo ' # Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com # hardening guide. -KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256 +KexAlgorithms sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256 Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr MACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256' > /etc/ssh/sshd_config.d/99_hardening.conf @@ -32,6 +32,7 @@ HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256' > /etc/ssh/sshd_config. 5. Restart OpenSSH server ``` sudo launchctl stop com.openssh.sshd +sudo launchctl start com.openssh.sshd ``` ## Validated versions