From 48a626cf8946677b0d43cd49800b5b18c558b8e6 Mon Sep 17 00:00:00 2001 From: Rin Date: Fri, 3 May 2024 21:28:25 +0800 Subject: [PATCH] is this enough? --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0558781..f59f494 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31125,7 +31125,7 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) { qemu_process.stdin.write("echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config\n"); qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkeyContent}"\n`); qemu_process.stdin.write(`cat /root/.ssh/authorized_keys`); - }, 3000); + }, 10000); setTimeout(() => { ready_callback(qemu_process) }, 2000); // let waitForKey = (() => { // let concat = '' diff --git a/index.js b/index.js index 964db07..d69076d 100644 --- a/index.js +++ b/index.js @@ -235,7 +235,7 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) { qemu_process.stdin.write("echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config\n"); qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkeyContent}"\n`); qemu_process.stdin.write(`cat /root/.ssh/authorized_keys`); - }, 3000); + }, 10000); setTimeout(() => { ready_callback(qemu_process) }, 2000); // let waitForKey = (() => { // let concat = ''