#!/usr/bin/env python3 import paramiko PASS = "Bbt9115xty9176!" c = paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect("10.10.0.10", username="localadministrator", password=PASS, timeout=30) paths = [ "/home/localadministrator/coder/onsethost/.env.local", "/data/coolify/applications/shuurwefh5ipw3qfvmbq4vic/.env", ] for p in paths: print(f"\n=== {p} ===") _, o, e = c.exec_command(f"grep -i cloudflare {p} 2>/dev/null || echo missing", timeout=20) o.channel.recv_exit_status() text = (o.read() + e.read()).decode() for line in text.splitlines(): if "=" in line: k, _, v = line.partition("=") v = v.strip().strip('"') if len(v) > 16: v = v[:12] + "..." + v[-4:] print(f"{k}={v}") else: print(line) c.close()