`systemctl enable sshd` should start it automatically on boot.
You can verify this by running:
```
systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
```
On Sat, Apr 17, 2021 at 1:30 PM Nicholas Zhao <
mmmart...@gmail.com> wrote:
>
> I use the latest qemu and the latest linux.I followed
https://github.com/google/syzkaller/blob/master/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md .When I wanna connect to qemu using "ssh -i $IMAGE/stretch.id_rsa -p 10021 -o "StrictHostKeyChecking no" root@localhost" as mentioned in the doc, it failed.And later I found that ssh service just didn't start after qemu booting.I manually use "service sshd start" after qemu booting and I can connect to it later.But how can I set ssh start on qemu booting?I've tried add "service sshd start" into /etc/rc.local in the stretch.img, however it failed. Is there any other solutions? Thank you .
>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
syzkaller+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/syzkaller/3181a545-747c-4a32-81be-3ebfa7011b48n%40googlegroups.com.