[SOLVED] Missing /run/sshd in Bullseye standard zst template

apmuthu

Renowned Member
Feb 26, 2009
871
12
83
Chennai - India & Singapore
github.com
Using DAB v3.5.2 in latest PVE 8.2 we build a Debian 11.10 Bullseye template using zst max compression. On deployment, the /run/sshd folder is missing even though the Makefile had dab exec -p /run/sshd instruction.

Also, the login is delayed on the container's console and in SFTP and that is solved by systemctl mask systemd-logind
 
Bear in mind /run/ is on tmpfs, and /run/sshd created when sshd initiated on demand via systemd in debian lxc.
I once had issues with sshd in the debian container.
 
In case the sshd does not work outside the console, then try the solutions given here.
The best results will be to execute inside the container apt install openssh-server --reinstall
This is because the folder /run/sshd and the corresponding .pid fails to get created at each start.