SSH not permitted on LXC container ?

kast0r

New Member
Jun 29, 2022
11
1
1
Hi,

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?

Thanks!
 
I can't tell if ssh is permitted. Don't have any user except root for now.
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.
 
  • Like
Reactions: nick.kopas
When creating a container, you can also add an ssh key. That way you don't have to manually enter it and edit the sshd