only try SSH to a remote machine if ping works first