From dd47fcc529d996834ea8a93f696d30dc4cf49887 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 13 Aug 2025 21:46:52 +0800 Subject: [PATCH] fix: Fix terminal connection initialization exception (#9987) --- agent/app/api/v2/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/app/api/v2/setting.go b/agent/app/api/v2/setting.go index af226d47f..80bb907dc 100644 --- a/agent/app/api/v2/setting.go +++ b/agent/app/api/v2/setting.go @@ -113,7 +113,7 @@ func loadLocalConn() (*ssh.SSHClient, error) { itemPath = path.Join(currentInfo.HomeDir, ".ssh/id_ed25519_1panel") } if _, err := os.Stat(itemPath); err != nil { - _ = sshService.CreateRootCert(dto.CreateRootCert{EncryptionMode: "ed25519", Name: "1panel", Description: "1Panel Terminal"}) + _ = sshService.CreateRootCert(dto.CreateRootCert{EncryptionMode: "ed25519", Name: "id_ed25519_1panel", Description: "1Panel Terminal"}) } privateKey, _ := os.ReadFile(itemPath)