aboutsummaryrefslogtreecommitdiffstats
path: root/local_testing/scripts/push-keys
diff options
context:
space:
mode:
Diffstat (limited to 'local_testing/scripts/push-keys')
-rwxr-xr-xlocal_testing/scripts/push-keys7
1 files changed, 7 insertions, 0 deletions
diff --git a/local_testing/scripts/push-keys b/local_testing/scripts/push-keys
new file mode 100755
index 0000000..6fdc85f
--- /dev/null
+++ b/local_testing/scripts/push-keys
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+# Intended to be used in the "control" VM to push keys to the other hosts
+
+for i in {1..6} ; do
+ ssh-keyscan 192.168.56.$i >> ~/.ssh/known_hosts
+ sshpass -p vagrant ssh-copy-id 192.168.56.$i
+done