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>
10 lines
415 B
Python
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()
|