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 (
1717const (
1818 maxHostHops = 10
1919 defaultSSHPort = "22"
20- defaultSSHKeyPath = "${HOME}/.ssh/id_rsa"
20+ defaultSSHKeyPaths = "${HOME}/.ssh/id_ed25519,${HOME}/.ssh/id_ecdsa, ${HOME}/.ssh/id_rsa"
2121 defaultSSHKnownHostsPath = "${HOME}/.ssh/known_hosts"
2222 defaultSSHConfigFile = "${HOME}/.ssh/config"
2323 defaultSSHAuthMethods = "agent,privkey"
@@ -55,7 +55,7 @@ func (u *ConnectionURI) parseAuthMethods(target string, sshcfg *ssh_config.Confi
5555
5656 if len (sshKeyPaths ) == 0 {
5757 log .Printf ("[DEBUG] found no ssh keys, using default keypath" )
58- sshKeyPaths = [] string { defaultSSHKeyPath }
58+ sshKeyPaths = strings . Split ( defaultSSHKeyPaths , "," )
5959 }
6060
6161 log .Printf ("[DEBUG] ssh identity files for host '%s': %s" , target , sshKeyPaths )
You can’t perform that action at this time.
0 commit comments