45*/
46import { spawn } from 'node:child_process';
47import { createHash, randomInt } from 'node:crypto';
⋯
49import { createReadStream, existsSync, mkdirSync, readFileSync, writeFileSync, rmSync, mkdtempSync, renameSync, openSync, readSync, writeSync, closeSync } from 'node:fs';
50import { promises as dns } from 'node:dns';
51import { connect } from 'node:net';
⋯
150
151/* The three keys of this machine, made here if missing; private halves never leave it. */
152export async function ensureKeys(sys, P = PATHS) {
⋯
186sys.print('SETUP KEY: for `clavarium online --relay`. Put it once on the relay, in');
187sys.print('~/.ssh/authorized_keys of an account that has sudo. It is taken out at the end.');
188sys.print(` ${keys.setup}`);