( ip: string, command: string, )
| 41 | new Promise((resolve) => setTimeout(resolve, ms)); |
| 42 | |
| 43 | export 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 | |
| 51 | export const guestScpFrom = (ip: string, remote: string, local: string): Promise<unknown> => |
| 52 | execFileP(SSHPASS, [ |
no outgoing calls
no test coverage detected