This commit is contained in:
nelle 2024-02-16 17:26:45 -07:00
parent dc02c4cae2
commit 72b0ff1fe7

View file

@ -56,10 +56,10 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
fun loginActivity() {
var usernameDetail = loginField.text
var passwordDetail = passField.text
var passwordDetail = passField.text //TODO: Hash this ples
var serverDetail = serverField.text
var remoteCommand = "echo hello"
// For windows, instead of ssh pass?? https://github.com/PowerShell/Win32-OpenSSH/issues/1943
//TODO: For windows, instead of ssh pass?? https://github.com/PowerShell/Win32-OpenSSH/issues/1943 and https://github.com/winfsp/sshfs-win for sshfs?
val loginProcess = ProcessBuilder(
"sshpass", "-p", "$passwordDetail", "ssh", "$usernameDetail@$serverDetail", remoteCommand)
.redirectOutput(ProcessBuilder.Redirect.INHERIT)