Server is running Debian 10, all clients are running debian/raspbian.
All clients have server(s)’ public key in their ssh authorized_keys file.
I’d like to be able to call a OS shell script on the gateway to reboot or shutdown the clients.
Sometimes the client will not be operational (raspberry pi3) if it reboots faster than the server. I’m using
legacyLauncher.sh and a standalone jre for these.
Ideally, a tag change script on the gateway would watch for a memory tag (say, RebootGuests) and would trigger
/root/rebootGuests.sh on the gateway.
/root/rebootGuests.sh would contain the following:
ssh user@client1 '/sbin/reboot' ssh user@client2 '/sbin/reboot' ...
Right now I can’t get
/root/rebootGuests.sh to fire from the gateway.
Is there a way to do this?