Skip to content

Commit

Permalink
Merge pull request #12731 from ericeberry/u2404_5112
Browse files Browse the repository at this point in the history
Ubuntu 24.04 5.1.12 Ensure sshd KexAlgorithms is configured
  • Loading branch information
dodys authored Dec 17, 2024
2 parents 90303e5 + ef68631 commit 6f6b2bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1653,11 +1653,10 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- sshd_strong_kex=cis_ubuntu2404
- sshd_use_strong_kex
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/5.2.15.
status: automated

- id: 5.1.13
title: Ensure sshd LoginGraceTime is configured (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# platform = multi_platform_sle
# platform = multi_platform_sle,multi_platform_ubuntu

sed -i 's/^\s*KexAlgorithms\s.*//i' /etc/ssh/sshd_config
echo "KexAlgorithms diffie-hellman-group14-sha256" >> /etc/ssh/sshd_config
1 change: 1 addition & 0 deletions linux_os/guide/services/ssh/sshd_strong_kex.var
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ options:
cis_sle15: curve25519-sha256,[email protected],diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
cis_ubuntu2004: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
cis_ubuntu2204: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
cis_ubuntu2404: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
std_openeuler: curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256

0 comments on commit 6f6b2bb

Please sign in to comment.