TMAegis
macos 관련 규칙 더 보기

TMA-MACOS-2.3.3.4

Ensure Remote Login Is Disabled

높음레벨 1자동macos

설명

Remote Login allows an interactive terminal connection to a computer. Audit: All three benchmark checks must pass: systemsetup reports Off, sshd is disabled in launchd and not running.

점검 방법

감사 방식: 셸 명령

shell
a=$(/usr/sbin/systemsetup -getremotelogin 2>/dev/null) || exit 1
b=$(/bin/launchctl print-disabled system 2>/dev/null | /usr/bin/grep -c '"com.openssh.sshd" => disabled')
c=$(/bin/launchctl list 2>/dev/null | /usr/bin/grep -c "com.openssh.sshd")
if printf '%s' "$a" | /usr/bin/grep -q "Remote Login: Off" && [ "$b" -eq 1 ] && [ "$c" -eq 0 ]; then echo compliant; else echo "$a; disabled=$b; running=$c"; fi
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Terminal: sudo /usr/sbin/systemsetup -setremotelogin off. GUI: System Settings > General > Sharing > Set Remote Login to disabled.

속성

운영 체제
macos-26
태그
macossystem-settings
참고 자료
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.3.3.4 Ensure Remote Login Is Disabled

이 호스트 점검하기

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

shell
tmaegis scan --target macos