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

apmuthu

Renowned Member
Feb 26, 2009
868
11
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.
 
Solved by incorporating all the above in the Makefile for the Bullseye Debian 11.10 template. The /run/sshd gets created when sshd is first run. Also the SSH and SFTP login delay is now eliminated.

See attachment.

The github repo can be updated as needed.
 

Attachments

  • debian-11-bullseye-std-64.zip
    9.9 KB · Views: 0
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!