colo-utils: Disable StrictHostKeyChecking for SSH calls (#6117)

automerge
This commit is contained in:
Trent Nelson 2019-09-26 12:22:07 -06:00 committed by Grimes
parent 67d07254c2
commit c4ed80d544
1 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,7 @@ colo_instance_run() {
declare CMD="$2"
declare OUT
set +e
OUT=$(ssh -l solana -o "ConnectTimeout=3" -n "$IP" "$CMD" 2>&1)
OUT=$(ssh -l solana -o "StrictHostKeyChecking=no" -o "ConnectTimeout=3" -n "$IP" "$CMD" 2>&1)
declare RC=$?
set -e
while read -r LINE; do
@ -147,6 +147,9 @@ __colo_node_status_result_normalize() {
if [ -n "$US" ]; then
BY="$US"
ST="HELD"
if [[ -z "$INSTNAME" ]]; then
return
fi
else
ST="FREE"
fi