From a2daaa1ea3d5e6e1d98b81e399dc2b8d3d3724fe Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Tue, 9 Jun 2026 10:35:18 +0000 Subject: [PATCH] Fix SSH known_hosts permission error when running as www-data Add -o UserKnownHostsFile=/dev/null to remoteExec so SSH doesn't attempt to write to /var/www/.ssh/known_hosts (permission denied). 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 1885db1..5d66de3 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 ConnectTimeout=5 ' . + ' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 ' . escapeshellarg($r['user'] . '@' . $r['host']) . ' ' . escapeshellarg($cmd) . ' 2>&1' ) ?? '';