mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-11 07:55:59 +08:00
fix: Fix terminal connection initialization exception (#9987)
This commit is contained in:
parent
58ca377418
commit
6be7b4a75a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ func loadLocalConn() (*ssh.SSHClient, error) {
|
||||||
itemPath = path.Join(currentInfo.HomeDir, ".ssh/id_ed25519_1panel")
|
itemPath = path.Join(currentInfo.HomeDir, ".ssh/id_ed25519_1panel")
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(itemPath); err != nil {
|
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)
|
privateKey, _ := os.ReadFile(itemPath)
|
||||||
|
|
Loading…
Add table
Reference in a new issue