douyinWEB/scripts/_api_logs.py
eric d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00

10 lines
415 B
Python

import paramiko, time
HOST = "107.173.30.245"; USER = "root"; PASSWORD = "Xiao4669805"
c = paramiko.SSHClient(); c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect(HOST, 22, USER, PASSWORD, timeout=30, allow_agent=False, look_for_keys=False)
_s, out, _ = c.exec_command("journalctl -u douyinweb-api -n 40 --no-pager 2>&1", timeout=20)
print(out.read().decode("utf-8", "replace").strip())
c.close()