monitoring: nodes reboots itself if other nodes can not reach it
diff --git a/scripts/homelab/gather-pub-keys.sh b/scripts/homelab/gather-pub-keys.sh
new file mode 100755
index 0000000..5c1ba3f
--- /dev/null
+++ b/scripts/homelab/gather-pub-keys.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+SERVERS=(192.168.0.111 192.168.0.112 192.168.0.113 192.168.0.114 192.168.0.116)
+
+rm -f authorized_keys
+touch authorized_keys
+
+for IP in "${SERVERS[@]}"
+do
+    ssh "pcloud@${IP}" "sh /home/pcloud/pcloud-tools/generate-ssh-key.sh"
+    scp "pcloud@${IP}:/home/pcloud/.ssh/id_ed25519.pub" tmp-key.pub
+    cat tmp-key.pub >> authorized_keys
+    rm tmp-key.pub
+done
+