Linux distributions
CIS-UBUNTU-5.2.10
Ensure SSH PermitEmptyPasswords is disabled
CaoCấp 1Tự độnglinux
Mô tả
The PermitEmptyPasswords parameter specifies if the SSH server allows login to accounts with empty password strings.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
sshd -T 2>/dev/null | grep -i '^permitemptypasswords'- Đầu ra mong đợi
permitemptypasswords no
Cách khắc phục
Phương pháp khắc phục: Chỉnh sửa tệp
- Tệp
/etc/ssh/sshd_config- Dòng thay thế
PermitEmptyPasswords no
Thuộc tính
- Hệ điều hành
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Thẻ
- sshserver
- Tham chiếu
- CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure sshd PermitEmptyPasswords is disabled (verify section number for your release)
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target linux