(ip: string, remote: string, local: string)
| 49 | }); |
| 50 | |
| 51 | export const guestScpFrom = (ip: string, remote: string, local: string): Promise<unknown> => |
| 52 | execFileP(SSHPASS, [ |
| 53 | "-p", |
| 54 | GUEST_PASS, |
| 55 | "scp", |
| 56 | ...SSH_OPTS, |
| 57 | `${GUEST_USER}@${ip}:${remote}`, |
| 58 | local, |
| 59 | ]); |
| 60 | |
| 61 | /** |
| 62 | * Push a directory into the guest by streaming a tar over ssh: one connection, |