TMAegisBeta
Thêm quy tắc cho solaris

Oracle Solaris

TMA-SOLARIS-6.9

Disable root login for SSH

CaoCấp 1Tự độngsolaris

Mô tả

The PermitRootLogin value (in /etc/ssh/sshd_config) allows for direct root login by a remote user/application to resources on the local host. By default, it is not possible for the root account to log directly into the system console because the account is configured as a role. Audit: pattern match on /etc/ssh/sshd_config as described in the CIS audit procedure.

Cách kiểm tra

Phương pháp kiểm tra: Mẫu tệp

Tệp
/etc/ssh/sshd_config
Mẫu khớp
(?m)^PermitRootLogin\s+no\b

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Perform the following to implement the recommended state: # awk '/^PermitRootLogin/ { $2 = "no" } { print }' /etc/ssh/sshd_config > /etc/ssh/sshd_config.CIS # mv /etc/ssh/sshd_config.CIS /etc/ssh/sshd_config # svcadm restart svc:/network/ssh

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
solarisssh
Tham chiếu
CIS Oracle Solaris 11.4 Benchmark v1.1.0 - 6.9 Disable root login for SSH

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 solaris