import paramiko, sys
sys.stdout.reconfigure(encoding="utf-8")

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect("192.168.1.76", username="root", password="7309208104")

# uvicorn/app logy z msgreceiver kontejneru — hledej 403 a časy kolem 11:33 UTC
_, out, _ = ssh.exec_command("docker logs msgreceiver --since 2026-06-01T11:28:00Z --until 2026-06-01T11:35:00Z 2>&1")
print("=== msgreceiver logy 11:28-11:35 UTC ===")
print(out.read().decode() or "(prázdné)")

ssh.close()
