A security administrator is hardening an SSH server configuration file to protect sensitive administrative access. Which TWO configuration directives must be explicitly enforced to ensure strong cryptographic controls and prevent legacy weak encryption algorithms? (Choose two)
Trap 1: MACs hmac-md5,hmac-sha1
HMAC-MD5 and HMAC-SHA1 are cryptographically weak message authentication codes suffering from theoretical collision attacks and deprecation by modern security standards. Allowing these algorithms exposes the session integrity layer to potential tampering and active downgrade attacks.
Trap 2: PubkeyAuthentication no
Disabling public key authentication forces users to rely exclusively on password-based authentication, which significantly increases vulnerability to brute-force attacks and credential stuffing. Strong SSH hardening mandates public key authentication while disabling interactive passwords entirely.
Trap 3: Cipher blowfish-cbc
Blowfish is an obsolete block cipher with a small 64-bit block size that makes it exceptionally vulnerable to birthday attacks and sweet32 collision exploits when used for long data transfers. Modern security baselines explicitly prohibit small block cipher algorithms.
- A
Ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com
AES-GCM provides authenticated encryption with associated data, protecting both confidentiality and integrity simultaneously within a single modern primitive. Restricting the permitted ciphers to these authenticated modes prevents attackers from exploiting legacy block cipher chaining vulnerabilities.
- B
MACs hmac-md5,hmac-sha1
Why it fails: HMAC-MD5 and HMAC-SHA1 are cryptographically weak message authentication codes suffering from theoretical collision attacks and deprecation by modern security standards. Allowing these algorithms exposes the session integrity layer to potential tampering and active downgrade attacks.
- C
KexAlgorithms curve25519-sha256,diffie-hellman-group16-sha512
Curve25519 and high-order finite field Diffie-Hellman groups provide robust resistance against discrete logarithm attacks while ensuring proper forward secrecy. Enforcing these modern key exchange algorithms prevents adversaries from predicting or cracking the underlying session derivation parameters.
- D
PubkeyAuthentication no
Why it fails: Disabling public key authentication forces users to rely exclusively on password-based authentication, which significantly increases vulnerability to brute-force attacks and credential stuffing. Strong SSH hardening mandates public key authentication while disabling interactive passwords entirely.
- E
Cipher blowfish-cbc
Why it fails: Blowfish is an obsolete block cipher with a small 64-bit block size that makes it exceptionally vulnerable to birthday attacks and sweet32 collision exploits when used for long data transfers. Modern security baselines explicitly prohibit small block cipher algorithms.