Skip to content
Michael Rolli edited this page Sep 26, 2023 · 4 revisions

Welcome to the ansible-role-ssh wiki!

Please find here follow up informations found worthy to keep during the investigation work when building this role. In short, find answers on questions like "Why are things as they are?".

Why is the option PrintMotd set to 'no'?

In newer version of EL and Ubuntu, the MOTD feature is covered by PAM, see /etc/pam.d/sshd. Therefore you just have to add content to /etc/motd. If you happen to set the PrintMotd option to yes, the MOTD is printed twice.

If you are on an older OS (and you actually should not!), then you have to turn this on by setting it to yes.

How did you setup the current used algorithms?

Dealing with those crypto policies across multiple distros seems quite hard at first, but in the end, it's always the same OpenSSH serve underneath. Therefore the current setup is based on some best practices and leaves out distro-specific stuff like system-wide crypto-policies found in RHEL. The current setup relies solely on the openssh directives available directly in the sshd_config.

The lists of algorithms was created based on knowledge found in the following articles:

The configuration has then been tested on each supported OS using ssh-audit.

For newer (RHEL9+ and Ubuntu-2204+) the following additionl kex algorithm would be recommended, but is not built into the config as of yet:

# algorithm recommendations (for OpenSSH 8.9)
(rec) +sntrup761x25519-sha512@openssh.com   -- kex algorithm to append
Clone this wiki locally