TMAegis
linux 관련 규칙 더 보기

Linux distributions

CIS-UBUNTU-5.2.8

Ensure SSH root login is disabled

높음레벨 1자동linux

설명

The PermitRootLogin parameter specifies if the root user can log in using ssh.

점검 방법

감사 방식: 파일 패턴

파일
/etc/ssh/sshd_config
패턴
(?m)^\s*PermitRootLogin\s+no\b

조치 방법

조치 방식: 셸 명령

shell
sed -i 's/^#*PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config

속성

운영 체제
ubuntu-22.04, ubuntu-24.04, rocky-9
태그
sshserver
참고 자료
CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure sshd PermitRootLogin is disabled (verify section number for your release)

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target linux