Fix SSH log journalctl filter
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user