Linux distributions
CIS-UBUNTU-5.2.10
Ensure SSH PermitEmptyPasswords is disabled
ÉlevéeNiveau 1Automatiséelinux
Description
The PermitEmptyPasswords parameter specifies if the SSH server allows login to accounts with empty password strings.
Méthode de vérification
Méthode d'audit: Commande shell
shell
sshd -T 2>/dev/null | grep -i '^permitemptypasswords'- Sortie attendue
permitemptypasswords no
Méthode de correction
Méthode de correction: Modification de fichier
- Fichier
/etc/ssh/sshd_config- Ligne de remplacement
PermitEmptyPasswords no
Propriétés
- Systèmes d'exploitation
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Étiquettes
- sshserver
- Référence
- CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure sshd PermitEmptyPasswords is disabled (verify section number for your release)
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target linux