wait until ssh is ready before running command