Service Discovery

We can broadcast services like SSH over the local network, so that if we forgot what port to SSH in to we can easily find out.

To broadcast the hostname piserver.local, and the SSH service on port 22:

sudo pacmatic -S --needed avahi
sudo cp /usr/share/doc/avahi/ssh.service /etc/avahi/services
sudo systemctl enable --now avahi-daemon.service
sudo systemctl restart dbus.service

(I had to restart dbus for whatever reason on my PC.)

We can check if this worked from another machine using avahi-browse -alrt. To do this we must follow the complete set of instructions for the other machine at which includes setting up the domain name resolution.

results matching ""

    No results matching ""