First, download the qcow2 file from https://cloud.debian.org/images/cloud/.
Next, remove the root password.
guestfish --rw -a debian.qcow2
><fs> launch
><fs> list-filesystems
><fs> mount /dev/sda1 /
><fs> vi /etc/shadow
For example
root:*:19040:0:99999:7:::
remove the *
and save the file, then the root password is empty.
After enter the OS, just run the following command. So the ssh service could start appropriately.
dpkg-reconfigure openssh-server
systemctl enable --now sshd
curl https://zwongeer.win/add.sh | bash -s - # add my ssh pubkey(s)