aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/scripts/cleanup_creds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/scripts/cleanup_creds.sh')
-rwxr-xr-xlegacy/scripts/cleanup_creds.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/scripts/cleanup_creds.sh b/legacy/scripts/cleanup_creds.sh
new file mode 100755
index 00000000..b4eee924
--- /dev/null
+++ b/legacy/scripts/cleanup_creds.sh
@@ -0,0 +1,11 @@
+#! /bin/bash
+
+DEST_IP=$1
+HOSTNAME=$(hostname)
+sshoptions="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
+
+case "$INSTALLER_TYPE" in
+ fuel)
+ ssh $sshoptions -i ./config/QtipKey root@$DEST_IP "sed -i '/root@$HOSTNAME/d' /root/.ssh/authorized_keys"
+ ;;
+esac