From 9dfe52b34dc3d9ad5481ed9107b7d4d4d043b34e Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Mon, 14 Apr 2025 15:22:01 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/TG/Hook/System.php b/app/Services/TG/Hook/System.php index 10ec1be..68ab0d2 100644 --- a/app/Services/TG/Hook/System.php +++ b/app/Services/TG/Hook/System.php @@ -16,7 +16,7 @@ class System extends Base { // 检查是否成功获取到公钥 if ($key) { // 获取 known_hosts 文件的路径 - $knownHostsFile = getenv('HOME') . '/.ssh/known_hosts'; + $knownHostsFile = '/root/.ssh/known_hosts'; // 检查 known_hosts 文件中是否已经存在该主机的公钥 if (strpos(file_get_contents($knownHostsFile), $host) === false) {