avahi on centos7 for SSH
After installing the packages: nss-mdns, avahi, avahi-ui-tools ensure that the /etc/nsswitch.conf hosts line contains mdns4 (see the docs less /usr/share/doc/nss-mdns-0.10/README, or to whatever rpm -qd nss-mdns points.
Ensure that UDP/5353 is open in the firewall (per standard CentOS7/RHEL7 this is done using firewalld and its associated commands):
# check the name of the service from the available list $ sudo firewall-cmd --get-services | grep mdns # add the "mdns" service and set it to expire in 10 minues $ sudo firewall-cmd --add-service=mdns --timeout=10m # verify service port is now opened $ sudo firewall-cmd --list-services dhcpv6-client ssh mdns
Copy the SSH service from the sample in docs
cp /usr/share/doc/avahi-0.6.31/ssh.service /etc/avahi/services/ssh.service
Edit the avahi-daemon to give it a unique name
[server] host-name=ush-avahi-testname domain-name=local
Check the availability of the SSH service
[ush@panurge Downloads]$ avahi-browse -a + p3p1 IPv4 ush-avahi-testname [34:17:eb:ad:e0:fc] Workstation local + p3p1 IPv4 ush-avahi-testname SSH Remote Terminal local



















