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>
19 lines
978 B
Python
19 lines
978 B
Python
# -*- coding: utf-8 -*-
|
|
import sys
|
|
import paramiko
|
|
|
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect("192.227.152.110", 22, "root", "Leaf448772566", timeout=30, allow_agent=False, look_for_keys=False)
|
|
cmds = [
|
|
"ls /www/server/panel/vhost/nginx/proxy/miniflux.smallzhiyuns.com 2>/dev/null; echo ---; sed -n '1,80p' /www/server/panel/vhost/nginx/miniflux.smallzhiyuns.com.conf",
|
|
"ls /www/server/panel/vhost/cert/ytshort.smallzhiyuns.com; openssl x509 -in /www/server/panel/vhost/cert/ytshort.smallzhiyuns.com/fullchain.pem -noout -subject -ext subjectAltName 2>/dev/null | head -20",
|
|
"ls /www/server/panel/vhost/rewrite | head; ls /www/server/panel/vhost/nginx/well-known | head",
|
|
]
|
|
for cmd in cmds:
|
|
print("\n===== ", cmd[:100], " =====")
|
|
_, o, e = c.exec_command(cmd, timeout=15)
|
|
print((o.read() + e.read()).decode("utf-8", "replace")[-6000:])
|
|
c.close()
|