Fix SSH log journalctl filter

This commit is contained in:
2026-02-08 01:56:38 +03:00
parent 118d4bf7f2
commit dbf9b1fd2f

View File

@@ -71,7 +71,16 @@ async def ssh_log(msg: Message):
async def worker(): async def worker():
lines: list[str] = [] lines: list[str] = []
rc, out = await run_cmd( rc, out = await run_cmd(
["journalctl", "-u", "ssh", "-u", "sshd", "--since", "today", "--no-pager"], [
"journalctl",
"-t",
"sshd",
"-t",
"sshd-session",
"--since",
"00:00",
"--no-pager",
],
timeout=20, timeout=20,
) )
if rc == 0 and out.strip(): if rc == 0 and out.strip():