Wednesday, July 18, 2018

[LXC] ssh connect to lxc container (centos): Connection refused


ON centos lxc (lxc == centos)

$ yum install openssh-server
$ systemctl start sshd.service
$ adduser centos
$ passwd centos


ON remote

$ ssh centos@lxc_centos_ip