Call GetSSHClient once in a full sync procedure, reusing the client (fixes multiple keyfile passphrase prompts)

This commit is contained in:
2024-08-11 15:01:24 -04:00
parent 102ef6955c
commit 9f43337437
4 changed files with 36 additions and 40 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ func DeviceIDGen() (string, string) {
// register device ID with server and fetch remote EntryRoot and OS type
//manualSync is true so the user is alerted if device ID registration fails
sshEntryRootSSHIsWindows := strings.Split(GetSSHOutput("libmuttonserver register", deviceID, true), FSSpace)
sshClient, _, _ := GetSSHClient(true)
sshEntryRootSSHIsWindows := strings.Split(GetSSHOutput(sshClient, "libmuttonserver register", deviceID), FSSpace)
return sshEntryRootSSHIsWindows[0], sshEntryRootSSHIsWindows[1]
}