From 2be5c03ebf903d9031ad0cfb93d1af4863161ebe Mon Sep 17 00:00:00 2001 From: Rin Date: Sun, 17 Mar 2024 20:02:46 +0800 Subject: [PATCH] why there's always a typo urghhh --- dist/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8e5805e..4eae016 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31101,8 +31101,8 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => { let ssh_ready = false; let do_ssh_callback = () => { - qemu_executable.stdin.write("mkdir -p ~/.ssh && cat > ~/.ssh/authorized_keys <> /etc/rc.conf && echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && /etc/rc.d/sshd start && /etc/rc.d/sshd restart\n"); - qemu_executable.stdin.write(pubkey + "\nEOF\n"); + qemu_process.stdin.write("mkdir -p ~/.ssh && cat > ~/.ssh/authorized_keys <> /etc/rc.conf && echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && /etc/rc.d/sshd start && /etc/rc.d/sshd restart\n"); + qemu_process.stdin.write(pubkey + "\nEOF\n"); }; let waitForPrompt = (() => { diff --git a/index.js b/index.js index 20cd077..2136c75 100644 --- a/index.js +++ b/index.js @@ -211,8 +211,8 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey) qemu_wrapper(qemu_executable, qemu_args, (qemu_process) => { let ssh_ready = false; let do_ssh_callback = () => { - qemu_executable.stdin.write("mkdir -p ~/.ssh && cat > ~/.ssh/authorized_keys <> /etc/rc.conf && echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && /etc/rc.d/sshd start && /etc/rc.d/sshd restart\n"); - qemu_executable.stdin.write(pubkey + "\nEOF\n"); + qemu_process.stdin.write("mkdir -p ~/.ssh && cat > ~/.ssh/authorized_keys <> /etc/rc.conf && echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && /etc/rc.d/sshd start && /etc/rc.d/sshd restart\n"); + qemu_process.stdin.write(pubkey + "\nEOF\n"); }; let waitForPrompt = (() => {