MCPcopy Index your code
hub / github.com/HoneyLLM/cli2ssh / GetDefaultHostKeyPath

Function GetDefaultHostKeyPath

internal/path/path.go:8–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func GetDefaultHostKeyPath() string {
9 homeDir, err := os.UserHomeDir()
10 if err != nil {
11 return ""
12 }
13
14 dataDirPath := path.Join(homeDir, ".cli2ssh")
15 err = os.MkdirAll(dataDirPath, 0700)
16 if err != nil {
17 return ""
18 }
19
20 return path.Join(dataDirPath, "id_ed25519")
21}

Callers 2

CreateServerFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected