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

cosmos

Well-Known Member
Apr 1, 2013
104
2
58
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!