Updated comment to note that the configuration is community-provided.

Joe Testa 2023-03-21 12:37:57 -04:00
parent deb3537943
commit c167db93d4

@ -28,8 +28,8 @@ sed -i 's/^\#HostKey \/etc\/ssh\/ssh_host_\(rsa\|ed25519\)_key$/HostKey \/etc\/s
### 4. Restrict supported key exchange, cipher, and MAC algorithms ### 4. Restrict supported key exchange, cipher, and MAC algorithms
``` ```
cat <<EOF > /etc/ssh/sshd_config.d/ssh-audit_hardening.conf cat <<EOF > /etc/ssh/sshd_config.d/ssh-audit_hardening.conf
# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com # Restrict key exchange, cipher, and MAC algorithms, as per community-provided
# hardening guide. # hardening guide at: https://github.com/jtesta/ssh-audit/wiki/Proxmox-VE-7.3-6/
KexAlgorithms diffie-hellman-group14-sha256,curve25519-sha256,curve25519-sha256@libssh.org,gss-curve25519-sha256-,diffie-hellman-group16-sha512,gss-group16-sha512-,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256 KexAlgorithms diffie-hellman-group14-sha256,curve25519-sha256,curve25519-sha256@libssh.org,gss-curve25519-sha256-,diffie-hellman-group16-sha512,gss-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 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 MACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com