File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
const (
18
18
maxHostHops = 10
19
19
defaultSSHPort = "22"
20
- defaultSSHKeyPath = "${HOME}/.ssh/id_rsa"
20
+ defaultSSHKeyPaths = "${HOME}/.ssh/id_ed25519,${HOME}/.ssh/id_ecdsa, ${HOME}/.ssh/id_rsa"
21
21
defaultSSHKnownHostsPath = "${HOME}/.ssh/known_hosts"
22
22
defaultSSHConfigFile = "${HOME}/.ssh/config"
23
23
defaultSSHAuthMethods = "agent,privkey"
@@ -55,7 +55,7 @@ func (u *ConnectionURI) parseAuthMethods(target string, sshcfg *ssh_config.Confi
55
55
56
56
if len (sshKeyPaths ) == 0 {
57
57
log .Printf ("[DEBUG] found no ssh keys, using default keypath" )
58
- sshKeyPaths = [] string { defaultSSHKeyPath }
58
+ sshKeyPaths = strings . Split ( defaultSSHKeyPaths , "," )
59
59
}
60
60
61
61
log .Printf ("[DEBUG] ssh identity files for host '%s': %s" , target , sshKeyPaths )
You can’t perform that action at this time.
0 commit comments