From 4ab9f6938d15cc49ec3054bf802931cb363231f4 Mon Sep 17 00:00:00 2001 From: Bas Date: Wed, 2 Aug 2023 17:51:27 +0200 Subject: [PATCH] As per #200 --- macOS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macOS.md b/macOS.md index c64f26b..1a1127c 100644 --- a/macOS.md +++ b/macOS.md @@ -16,7 +16,8 @@ mv /etc/ssh/moduli.safe /etc/ssh/moduli 3. Enable the RSA and ED25519 keys Enable the RSA and ED25519 HostKey directives in the /etc/ssh/sshd_config file: ``` -sed -i 's/^\#HostKey \/etc\/ssh\/ssh_host_\(rsa\|ed25519\)_key$/HostKey \/etc\/ssh\/ssh_host_\1_key/g' /etc/ssh/sshd_config +sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_rsa_key/HostKey \/etc\/ssh\/ssh_host_rsa_key/' /etc/ssh/sshd_config +sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_ed25519_key/HostKey \/etc\/ssh\/ssh_host_ed25519_key/' /etc/ssh/sshd_config ``` 4. Restrict supported key exchange, cipher, and MAC algorithms ```