On the device to be discovered:
- Copy ip-discovery to /usr/bin and run
chmod +x /usr/bin/ip-discovery
- Copy ip-discovery.service to /etc/systemd/system, adjust the code-word, and run
sudo systemctl daemon-reload && sudo systemctl start ip-discovery
On the device wanting to discover the device to be discovered:
- Copy ip-discover to your home folder and run
. ~/ip-discover
- Discover the device to be discovered by running
ip-discover code-word
- Update your SSH config and see the changes by running
ssh-ip-discover code-word