# -*- coding: utf-8 -*- import sys, 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) _, o, _ = c.exec_command("cat /www/server/panel/vhost/nginx/well-known/miniflux.smallzhiyuns.com.conf; echo ---; cat /www/server/panel/vhost/rewrite/miniflux.smallzhiyuns.com.conf; echo ---; ls /www/server/panel/vhost/nginx/extension/miniflux.smallzhiyuns.com", timeout=10) print(o.read().decode()) c.close()