Skip to content

Commit

Permalink
zzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 3, 2024
1 parent 7fbb421 commit 5af78a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31126,8 +31126,9 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) {
concat += data.toString()
if (concat.includes("root@freebsd:")) {
qemu_process.stdin.write("echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config\n");
qemu_process.stdin.write("service ssh restart\n");
qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkeyContent}"\n`);
qemu_process.stdin.write(`cat /root/.ssh/authorized_keys`);
qemu_process.stdin.write(`cat /root/.ssh/authorized_keys\n`);
setTimeout(() => { ready_callback(qemu_process) }, 2000);
waitForKey = () => { }
}
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ function setup_sshkey(pubkey, qemu_process, ready_callback) {
concat += data.toString()
if (concat.includes("root@freebsd:")) {
qemu_process.stdin.write("echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config\n");
qemu_process.stdin.write("service ssh restart\n");
qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkeyContent}"\n`);
qemu_process.stdin.write(`cat /root/.ssh/authorized_keys`);
qemu_process.stdin.write(`cat /root/.ssh/authorized_keys\n`);
setTimeout(() => { ready_callback(qemu_process) }, 2000);
waitForKey = () => { }
}
Expand Down

0 comments on commit 5af78a9

Please sign in to comment.