Ship zombie reconcile, S3 covers, session end/drill-down, rooms ops, and refresh README for production. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
970 B
Python
22 lines
970 B
Python
# -*- coding: utf-8 -*-
|
|
import paramiko
|
|
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect("107.173.30.245", 22, "root", "Xiao4669805", timeout=30, allow_agent=False, look_for_keys=False)
|
|
|
|
cmds = [
|
|
"nginx -v 2>&1; ls /etc/nginx/sites-enabled/ 2>/dev/null; ls /etc/nginx/conf.d/ 2>/dev/null",
|
|
"grep -Rni 'server_name\\|listen' /etc/nginx/sites-enabled /etc/nginx/conf.d 2>/dev/null | head -60",
|
|
"command -v certbot; ls /etc/letsencrypt/live 2>/dev/null",
|
|
"ss -lntp | grep -E ':80|:443|:4015|:8014|:8333|:8092'",
|
|
"curl -sI --max-time 5 http://dylive.nomadro.com/ | head -10",
|
|
"curl -sI --max-time 5 http://s3.nomadro.com/ | head -10",
|
|
"curl -sI --max-time 5 http://feiniu.nomadro.com/ | head -10",
|
|
]
|
|
for cmd in cmds:
|
|
print("\n====", cmd[:90], flush=True)
|
|
_, o, _ = c.exec_command(cmd, timeout=40, get_pty=True)
|
|
print(o.read().decode("utf-8", errors="replace")[-2500:], flush=True)
|
|
c.close()
|