如何看 Mac ssh log 訊息

setting sshd_config 要改接受訊息類別 LogLevel VERBOSE

# Logging
SyslogFacility AUTH
LogLevel VERBOSE

show sshd log

online


log stream --info --predicate 'processImagePath contains[c] "sshd"'

history

log show --info --predicate ‘processImagePath contains[c] “sshd”’

參考:https://www.scl.utah.edu/pdf/mac_mgrs/20180718_mm/2018.07.18_mm_logs.pdf