From c18a1595043a3bc411705621a85dd283a447011e Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 18 Sep 2024 10:19:07 +0000 Subject: [PATCH] Handle multiple sshds --- app/src/main/java/io/xpipe/app/util/SshLocalBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/util/SshLocalBridge.java b/app/src/main/java/io/xpipe/app/util/SshLocalBridge.java index 0ab35b424..ca1b31b30 100644 --- a/app/src/main/java/io/xpipe/app/util/SshLocalBridge.java +++ b/app/src/main/java/io/xpipe/app/util/SshLocalBridge.java @@ -182,7 +182,7 @@ public class SshLocalBridge { if (exec.isEmpty()) { throw ErrorEvent.expected(new IllegalStateException("No sshd executable found in PATH. The SSH terminal bridge requires a local ssh server")); } - return exec.get(); + return exec.get().lines().findFirst().orElseThrow(); } }