Base setup, shell must be set, fix remote host check
This commit is contained in:
@@ -45,7 +45,7 @@ else
|
||||
# make sure the identiy file is there
|
||||
# grep "IdentityFile" in this
|
||||
SSH_TEST=("${SUDO_COMMAND[@]}" "ssh" "${REMOTE_HOST}");
|
||||
result=$("${SSH_TEST[@]}");
|
||||
result=$("${SSH_TEST[@]}" 2>&1);
|
||||
validate_string="You've successfully authenticated with the key"
|
||||
if [[ "$result" != *"$validate_string"* ]]; then
|
||||
echo "Could not connect to ${REMOTE_HOST}: ${result}";
|
||||
|
||||
Reference in New Issue
Block a user