There is no problem to start sshd. But randomly it stops to work and I cannot login remotely anymore for any user.
I have to restart sshd and it works again:
Content of /etc/ssh/sshd_config (uncomment part only)
PasswordAuthentication no
ChallengeResponseAuthentication no
Subsystem sftp internal-sftp
Match Group sftp_users
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory %h
ForceCommand internal-sftp
Match Group sshtunnel
X11Forwarding no
AllowTcpForwarding yes
AllowAgentForwarding no
ForceCommand /bin/false
I am using Debian version 5.11.22-4-pve (build@proxmox) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PVE 5.11.22-8 (Fri, 27 Aug 2021 11:51:34 +0200)
Its running as CT on ProxMox 7.0-11