Tests SSH before running

This commit is contained in:
Michael Stanclift 2020-05-25 13:18:23 -05:00
parent 1b158f0a2b
commit 3ee922011f

View File

@ -295,6 +295,12 @@ function validate_os_sshpass {
fi
echo -e "$INFO $MESSAGE"
MESSAGE="Testing SSH Connection"
echo -e "$STAT $MESSAGE"
${sshpassword}ssh -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit'
error_validate
}
# List GS Arguments