nomadro/apps/ebook/deploy/pay_probe3.py
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

16 lines
582 B
Python

#!/usr/bin/env python3
import paramiko, sys
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect("107.173.30.245", username="root", password="Xiao4669805", timeout=20)
cmds = [
"tail -n 80 /root/.pm2/logs/ebook-error-0.log",
"ss -tlnp | awk '{print $4}' | sed 's/.*://' | sort -n | uniq",
]
for c in cmds:
print("===", c)
_, stdout, _ = client.exec_command(c, timeout=20)
print(stdout.read().decode("utf-8", errors="replace")[-4000:])
client.close()