Skip to content

Activate SSH in LXC Container

Info

All this commands need to be run in the container.

Edit Config

Bash
nano /etc/ssh/sshd_config
change the following line:
Bash
#PermitRootLogin prohibit-password
to:
Bash
PermitRootLogin yes

Restart SSH

Bash
service ssh restart