Check the remote file whether it exists
ssh -q ubuntu@10.10.10.10 [[ -f /etc/nginx/conf.d/test.conf ]] && echo "true" || echo "false"
Check the remote file whether it exists
ssh -q ubuntu@10.10.10.10 [[ -f /etc/nginx/conf.d/test.conf ]] && echo "true" || echo "false"