RHEL 8 overrides some sshd settings, so no matter what it has been set in /etc/ssh/sshd_config
, the options listed in /etc/crypto-policies/back-ends/opensshserver.config
takes precedence.
From my point of view, this decision has some (IMHO) severe drawbacks:
- Makes the command listed in
ps
output to be overly long and hard to parse - 'Escapes' configuration testing using
sshd -t
orsshd -T
- Yet another file to configure/maintain -- since everything will be configured by SaltStack anyways, I honestly don't see why I have to split sshd configuration over several files
On RHEL 8, I can "opt out" from having sshd settings becoming overridden by that .config file by uncommenting the CRYPTO_POLICY=
line in /etc/sysconfig/sshd
, meaning that sshd will fully be configured by /etc/ssh/sshd_config
.
What will be the drawbacks of "opting out" from letting RHEL 8's "security policies" to handle (some) sshd configuration? Or, the flip side, what benefits will I gain by using "security policies" rather than configuring everything from /etc/ssh/sshd_config
?