@stefano @nixCraft @imil

Here on Debian {in MX Linux} I had to add the following tools since the machine is not configured for programming

bmake

`apt install bmake`

bsdtar

`apt install libarchive-tools`

then success

>> log

# $ ./startnb.sh -f etc/sshd.conf
* using console: viocon
using QEMU version 7.2.19 (Debian 1:7.2+dfsg-7+deb12u16)
[ 1.0000000] NetBSD 11.99.3 (MICROVM) Notice: this software is protected by copyright
[ 1.0000000] Detecting hardware... (QBOOT 000000000000)
[ 1.0257426] done.
[ 1.0345973] kernel boot time: 51ms
Created tmpfs /dev (1835008 byte, 3552 inodes)
add net default: gateway 10.0.2.2
Starting sshd.
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.

>> End of log

^Z

I pressed ^C to enter the server to add the needed passwords for the user and root

login was a success then

#netBSD #BSD #UNIX #OpenSource #programming #quemu #bash #sh

@Dendrobatus_Azureus @stefano @nixCraft I might have to explain it a bit more explicitly, the sshd service is... an sshd service :) meaning that it is not aimed at being used as a console, you should put a public key in service/sshd/etc/mykey.pub, build the image, start it like you did and ssh -p 2022 ssh@localhost for example
@Dendrobatus_Azureus and thank you for the heads up, those feedback are crucial for us to improve the documentation @stefano @nixCraft