[SOLVED] LXC container with CentOS template: can not ssh

cosmos

Renowned Member
Apr 1, 2013
126
5
83
I've created an LXC container based on the CentOS image. It seems as though sshd is not running. Running service sshd start throws an error:
Code:
# service sshd start
Redirecting to /bin/systemctl start sshd.service
Failed to start sshd.service: Unit not found.

Is there a package I should install via yum?

EDIT: OpenSSH seems to be installed:
Code:
# yum install openssh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.hosting.com.tr
 * extras: ftp.linux.org.tr
 * updates: mirror.netdirekt.com.tr
Package openssh-7.4p1-21.el7.x86_64 already installed and latest version
Nothing to do
 
Hey,

try installing openssh-server, and if needed openssh-client.
 
You're the best, worked like a charm.

One more: is it ok to do yum update on the LXC, or would you suggest against that?
 
Updating should not be a problem, and I can't think of a good reason not to.