summaryrefslogtreecommitdiffstats
path: root/scripts/cleanup_creds.sh
blob: 9bf443057125bda74c4cdafbf8970cce4736c86c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /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