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 = (() => {