MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / guestSsh

Function guestSsh

e2e/src/vm/desktop.ts:43–49  ·  view source on GitHub ↗
(
  ip: string,
  command: string,
)

Source from the content-addressed store, hash-verified

41 new Promise((resolve) => setTimeout(resolve, ms));
42
43export const guestSsh = (
44 ip: string,
45 command: string,
46): Promise<{ stdout: string; stderr: string }> =>
47 execFileP(SSHPASS, ["-p", GUEST_PASS, "ssh", ...SSH_OPTS, `${GUEST_USER}@${ip}`, command], {
48 maxBuffer: 64 * 1024 * 1024,
49 });
50
51export const guestScpFrom = (ip: string, remote: string, local: string): Promise<unknown> =>
52 execFileP(SSHPASS, [

Callers 2

guestFileSizeFunction · 0.85
recordGuestScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected