Checkpoint ... there are reliability issues with this.
Overhaul to use the external 'scp' and 'ssh' commands ... for reliability
Completed the rewrite and retest