Native support for iOS dirs; bind SSH dir to variable

This commit is contained in:
2026-02-07 15:05:15 -05:00
parent ec9c6b5062
commit d7242fee96
5 changed files with 33 additions and 4 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func GetSSHClient() (*ssh.Client, bool, *bool, *string, *string, error) {
// read known hosts file
var hostKeyCallback ssh.HostKeyCallback
hostKeyCallback, err = knownhosts.New(back.Home + global.PathSeparator + ".ssh" + global.PathSeparator + "known_hosts")
hostKeyCallback, err = knownhosts.New(global.SSHDir + global.PathSeparator + "known_hosts")
if err != nil {
return nil, false, nil, nil, nil, errors.New("unable to read known hosts file: " + err.Error())
}