waiting until instance is accepting ssh connections