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
548 B
Python
10 lines
548 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import annotations
|
|
import paramiko, sys
|
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
|
c=paramiko.SSHClient(); c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect("107.173.30.245",4014,"eric","4669805",timeout=45,allow_agent=False,look_for_keys=False)
|
|
_,o,e=c.exec_command("echo 4669805 | sudo -S -p '' bash -lc 'which caddy nginx 2>/dev/null; command -v caddy; command -v nginx; dpkg -l | grep -E \"caddy|nginx\" | head'", timeout=40)
|
|
print((o.read()+e.read()).decode())
|
|
c.close()
|