nomadro/apps/ebook/wemini/deploy/debug_remote8.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
575 B
Python

import paramiko
from pathlib import Path
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("82.157.112.245", username="ubuntu", password="Xiao4669805", timeout=20)
cmd = """
ls -la /etc/letsencrypt/live/ 2>/dev/null | grep admin || true
dig +short admin.nomadro.cn A 2>/dev/null || nslookup admin.nomadro.cn 2>/dev/null | tail -3
dig +short api.nomadro.cn A 2>/dev/null || true
"""
_, o, _ = c.exec_command(cmd)
Path("deploy/remote-check9.txt").write_text(o.read().decode("utf-8", "replace"), encoding="utf-8")
c.close()
print("ok")