$ log show --predicate 'process == "sshd"' --info --last 10
Filtering the log data using "process == "sshd"" Skipping debug messages, pass --debug to include. Timestamp Thread Type Activity PID TTL 2024-05-28 09:59:33.732102+0800 0x7ff0 Info 0x0 6224 0 sshd: Authentication refused: bad ownership or modes for directory /Volumes/work