CommCare HQ error during fresh installation

I'm trying to install CommCare HQ based on documentation from here Install Using Commcare-Cloud on one or more machines — CommCareHQ Deployment documentation but it gives the following error at step Deploy CommCare HQ services. When I run the command

commcare-cloud monolith deploy-stack --first-time -e 'CCHQ_IS_FRESH_INSTALL=1'

It gives below error

fatal: [ UNREACHABLE! = {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host port
22: No route to

Do you know what could cause it? Its single server installation and it should have access to itself right?

Hi Daler,

Even in case of a single server, CommCare Cloud would still follow it's standard approach to SSH into the machine that needs HQ installed from the control machine.

It looks like currently port 22 is not opened on the machine.
Can you check for that once?

Make sure you are able to ssh to the machine with the user you are logged in as to run the commcare-cloud command, before trying the monolith install command again.