So it seems that instead of having the sshd service running all the time, you can use the systemd socket which is waiting for connections and spawn a sshd service session on demand. This saves on resources. More reading about this...
OK, after some digging, this worked for me:
systemctl mask ssh.socket
systemctl mask sshd.socket
systemctl disable sshd
systemctl enable ssh
as posted by ratr: https://forum.proxmox.com/threads/proxmox-7-lxc-ssh-root-login-not-working.93752/post-409707
Same problem here. I tried with
ubuntu-21.04-standard_21.04-1_amd64.tar.gz
ubuntu-20.04-standard_20.04-1_amd64.tar.gz
ubuntu-20.10-standard_21.10-1_amd64.tar.gz
All with the same problem. After the reboot, the ssh service is dead:
root:~# systemctl status ssh
* ssh.service - OpenBSD Secure...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.