There is not enough information here to determine the root cause. You would need to provide debug logs to determine the cause of the failure. Since SSH appears to be working, it could be that these commands return an error code. If you cannot provide the logs here, open a TAC service request and attach the logs for this job.