scp command in command line step of the workflow




how to give scp command in command line step of workflow to copy a file from server.need to give username and password in the same command .

i have already tried the following commands :

scp ${file} desktop/xyz

scp ${file} USERNAME:'PASSWORD' desktop/xyz

And getting the following exception :

org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal(
    at org.apache.commons.exec.DefaultExecutor.execute(
    at org.apache.commons.exec.DefaultExecutor.execute(
    at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(
    at com.adobe.granite.workflow.core.job.JobHandler.process(
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    at java.util.concurrent.ThreadPoolExecutor$

but somehow i am not able to copy it .

please let me know if you have any idea about the respective issue. 


Saurabh 🙂

Accepted Solutions (1)

Accepted Solutions (1)



There are various ways like Using public keys without a passphrase  OR sshpass Or Expect . Check with your network team they will help with exact command.