1.26 UBTU-24-100840

Information

The operating system SSH server must be configured to use only FIPS-validated key exchange algorithms.

GROUP ID: V-270669
RULE ID: SV-270669r1067112

Without cryptographic integrity protections provided by FIPS-validated cryptographic algorithms, information can be viewed and altered by unauthorized users without detection.

The system will attempt to use the first algorithm presented by the client that matches the server list. Listing the values "strongest to weakest" is a method to ensure the use of the strongest algorithm available to secure the SSH connection.

Solution

Configure the SSH server to use only FIPS-validated key exchange algorithms.

Add or modify the following line in the "/etc/ssh/sshd_config" file:

KexAlgorithms ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group14-sha256

Restart the SSH server for changes to take effect:

$ sudo systemctl restart sshd.service

See Also

https://workbench.cisecurity.org/benchmarks/22775

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-17(2), CAT|II, CCI|CCI-000068, CSCv7|14.4, Rule-ID|SV-270669r1067112_rule, STIG-ID|UBTU-24-100840, Vuln-ID|V-270669

Plugin: Unix

Control ID: 98cce8d35e978b11d5bba5a11c55ecd88b6b87c9df3ebe1c3b8e36e8e7caa8e5