check with ping before try to ssh into the machine.