From 120449a40ad90e8ec645d8a486717d717ed03dc0 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Tue, 9 Jun 2026 12:55:33 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20remote=20nginx=20always=20showing=20Stopp?= =?UTF-8?q?ed=20=E2=80=94=20SSH=20warning=20poisoned=20isRunning()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remoteExec uses 2>&1 so SSH's own stderr merged with command stdout. The 'Warning: Permanently added...' line prepended to 'active' made the === 'active' check in isRunning() always return false. Add -o LogLevel=ERROR to suppress SSH informational/warning messages while keeping actual remote command output and real SSH errors. Co-Authored-By: Claude Sonnet 4.6 --- panel/lib/ProxyManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/lib/ProxyManager.php b/panel/lib/ProxyManager.php index c6113c0..7dd3138 100644 --- a/panel/lib/ProxyManager.php +++ b/panel/lib/ProxyManager.php @@ -80,7 +80,7 @@ class ProxyManager { if (!$r['host']) return 'no remote host configured'; return shell_exec( 'sshpass -p ' . escapeshellarg($r['pass']) . - ' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 ' . + ' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -o LogLevel=ERROR ' . escapeshellarg($r['user'] . '@' . $r['host']) . ' ' . escapeshellarg($cmd) . ' 2>&1' ) ?? '';