From dbf9b1fd2f0832834b07292dba79bb5551648298 Mon Sep 17 00:00:00 2001 From: benya Date: Sun, 8 Feb 2026 01:56:38 +0300 Subject: [PATCH] Fix SSH log journalctl filter --- handlers/system.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/handlers/system.py b/handlers/system.py index b56c8da..0fe5157 100644 --- a/handlers/system.py +++ b/handlers/system.py @@ -71,7 +71,16 @@ async def ssh_log(msg: Message): async def worker(): lines: list[str] = [] 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, ) if rc == 0 and out.strip():