fix: isolate trans ssh bootstrap
This commit is contained in:
+3
-3
@@ -3180,8 +3180,8 @@ async function runSshStreamRemoteCommand(
|
||||
}
|
||||
|
||||
async function runRemoteSsh(config: UniDeskConfig, host: string, providerId: string, args: string[]): Promise<number> {
|
||||
const { runRemoteCli } = await import("./remote");
|
||||
return await runRemoteCli({
|
||||
const { runRemoteSshCli } = await import("./remote-ssh");
|
||||
return await runRemoteSshCli({
|
||||
host,
|
||||
user: "root",
|
||||
port: 22,
|
||||
@@ -3212,7 +3212,7 @@ export async function runSshCommandCapture(config: UniDeskConfig, target: string
|
||||
}
|
||||
|
||||
async function runRemoteSshCapture(config: UniDeskConfig, host: string, target: string, args: string[], input?: string): Promise<SshCaptureResult> {
|
||||
const { runRemoteSshCommandCapture } = await import("./remote");
|
||||
const { runRemoteSshCommandCapture } = await import("./remote-ssh");
|
||||
return await runRemoteSshCommandCapture(config, host, target, args, input);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user