I don’t think it’s an issue about SSH not connecting, but rather that the connector is not executing or has expired. Please make sure that your workflow is reset before executing it, that way the connector will execute. If it is executing, but the connection expired, then it will be a matter of design to make sure that the connection is available.
Can you show us how you are running the workflow in Batch, and also show us how the workflow looks like to see where the connector is?