TMAegisBeta
Thêm quy tắc cho linux

Linux distributions

TMA-LNX-SSH-IGNORERHOSTS

Ensure SSH IgnoreRhosts is enabled

Trung bìnhCấp 1Tự độnglinux

Mô tả

Hardens the SSH daemon directive IgnoreRhosts.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
sshd -T 2>/dev/null | grep -i '^ignorerhosts '
Đầu ra mong đợi
ignorerhosts yes

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ế
IgnoreRhosts yes

Thuộc tính

Hệ điều hành
ubuntu-22.04, ubuntu-24.04, rocky-9
Thẻ
sshserver
Tham chiếu
CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro 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