Skip to content

Commit

Permalink
zffsrgfrdfg
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 3, 2024
1 parent 5af78a9 commit 419c1b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31126,8 +31126,8 @@ 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("/etc/rc.d/sshd restart\n");
qemu_process.stdin.write(`echo "${pubkeyContent}" > /root/.ssh/authorized_keys\n`);
qemu_process.stdin.write(`cat /root/.ssh/authorized_keys\n`);
setTimeout(() => { ready_callback(qemu_process) }, 2000);
waitForKey = () => { }
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ 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("/etc/rc.d/sshd restart\n");
qemu_process.stdin.write(`echo "${pubkeyContent}" > /root/.ssh/authorized_keys\n`);
qemu_process.stdin.write(`cat /root/.ssh/authorized_keys\n`);
setTimeout(() => { ready_callback(qemu_process) }, 2000);
waitForKey = () => { }
Expand Down

0 comments on commit 419c1b8

Please sign in to comment.