fallback to standard ssh when no key is found in store

This commit is contained in:
juancwu 2026-01-11 20:50:10 -05:00
commit 6967e3e749

View file

@ -85,11 +85,7 @@ func startSSH(storePath string, args []string) {
if host != "" {
pemData, err := findKey(storePath, user, host)
if err != nil {
fmt.Println("Error:", err)
os.Exit(1)
}
if err == nil {
targetName := host
if user != "" {
targetName = user + "@" + host
@ -110,6 +106,7 @@ func startSSH(storePath string, args []string) {
}
env = newEnv
}
}
sshPath, err := exec.LookPath("ssh")
if err != nil {