Skip to content

Ultimate Hardening 2.5.3

Choose a tag to compare

@Kal1010101 Kal1010101 released this 14 Nov 06:22
· 83 commits to main since this release

Bug-fix release. Module 2 (SSH) no longer turns off password login and root login when no account other than root can log in with a key, so a run cannot lock you out of a host you reach as root or with a password.

Fixed

  • Module 2 (SSH) turned off password login and root login even when no other
    account could log in with a key, which locked operators out of hosts they
    reach as root or with a password (the usual fresh cloud VPS). It now writes
    those two settings only when an account other than root has a key sshd
    accepts in an authorized_keys file, or sshd trusts a TrustedUserCAKeys CA.
    Otherwise it applies the other 11 settings and says how to finish.
    --dry-run reports the same. Keys served by an AuthorizedKeysCommand
    (LDAP, SSSD) cannot be checked, so those hosts set UH_SSH_LOCKOUT_CHECK=false.