I cannot ssh
from my host to my unprivileged container running Centos 7 at centoscontainer.local
. I successfully installed the avahi
package and the nss-mdns
package from the EPEL repo inside the container. The avahi-daemon
service is successfully running. This is the output of sudo systemctl status avahi-daemon
:
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2017-12-13 18:48:40 EST; 2min 40s ago
Main PID: 49 (avahi-daemon)
Status: "avahi-daemon 0.6.31 starting up."
CGroup: /system.slice/avahi-daemon.service
├─49 avahi-daemon: running [osfcentos7.local]
└─51 avahi-daemon: chroot helper
Dec 13 18:48:40 osf_centos7 systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: Found user 'avahi' (UID 70) and group 'avahi' (GID 70).
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: Successfully dropped root privileges.
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: avahi-daemon 0.6.31 starting up.
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: Successfully called chroot().
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: Successfully dropped remaining capabilities.
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: No service file found in /etc/avahi/services.
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: Registering HINFO record with values 'X86_64'/'LINUX'.
Dec 13 18:48:40 osf_centos7 avahi-daemon[49]: Server startup complete. Host name is osfcentos7.local. Local service cookie is 2629776790.
Dec 13 18:48:40 osf_centos7 systemd[1]: Started Avahi mDNS/DNS-SD Stack.
For comparison, I can successfully run ssh debiancontainer.local
from my host to my unprivileged container running Debian 9 after installing the avahi-daemon
package in the container.
Any suggestions for getting avahi working with unprivileged Centos 7?