diff --git a/dist/index.js b/dist/index.js index d587c0a..d7404bf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31131,13 +31131,14 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) { let waitForPrompt = waitFor("root@freebsd:", () => { waitForPrompt = () => { } let waitForKey = waitFor(pubkeyContent, () => { + show_message("info", "SSH key added successfully"); ready_callback(qemu_process) }) qemu_process.stdout.on('data', data => { process.stdout.write(data.toString()) waitForKey(data) }) - + show_message("debug", "Writing to stdin") qemu_process.stdin.write(`echo "${pubkeyContent}" > /root/.ssh/authorized_keys\n`); qemu_process.stdin.write(`cat /root/.ssh/authorized_keys\n`); qemu_process.stdin.write("echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config\n"); diff --git a/index.js b/index.js index e073972..8162ae4 100644 --- a/index.js +++ b/index.js @@ -241,13 +241,14 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) { let waitForPrompt = waitFor("root@freebsd:", () => { waitForPrompt = () => { } let waitForKey = waitFor(pubkeyContent, () => { + show_message("info", "SSH key added successfully"); ready_callback(qemu_process) }) qemu_process.stdout.on('data', data => { process.stdout.write(data.toString()) waitForKey(data) }) - + show_message("debug", "Writing to stdin") qemu_process.stdin.write(`echo "${pubkeyContent}" > /root/.ssh/authorized_keys\n`); qemu_process.stdin.write(`cat /root/.ssh/authorized_keys\n`); qemu_process.stdin.write("echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config\n");