diff --git a/src/bin/new_clone.sh b/src/bin/new_clone.sh index 2570fef..333cc37 100755 --- a/src/bin/new_clone.sh +++ b/src/bin/new_clone.sh @@ -46,7 +46,8 @@ else # grep "IdentityFile" in this SSH_TEST=("${SUDO_COMMAND[@]}" "ssh" "${REMOTE_HOST}"); result=$("${SSH_TEST[@]}" 2>&1); - validate_string="You've successfully authenticated with the key" + # this can be key or deploy key + validate_string="You've successfully authenticated with the " if [[ "$result" != *"$validate_string"* ]]; then echo "Could not connect to ${REMOTE_HOST}: ${result}"; error=1;