TMAegis
solaris için daha fazla kural

Oracle Solaris

TMA-SOLARIS-6.9

Disable root login for SSH

YüksekDüzey 1Otomatiksolaris

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Dosya deseni

Dosya
/etc/ssh/sshd_config
Desen
(?m)^PermitRootLogin\s+no\b

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
solarisssh
Referans
CIS Oracle Solaris 11.4 Benchmark v1.1.0 - 6.9 Disable root login for SSH

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target solaris