How can I make SSH work ? Any LXC container that I create, SSH is not working by default. Is there a way to make it works without enabling #PermitRoot in the sshd config?
Run pct enter CTID on the Proxmox host (replace CTID with the number of the container) to login to the container as root. You can then enable root login by editting /etc/ssh/sshd_config or add a (sudo) user for logging in.