Before returning service available, make sure port is connectable

SSH doesn't just wait for the port, it waits for SSH and sudo to be installed.