Wait until ssh connection is up