title: scp from remote to remote host groovy
body: <p>Hey I was wondering if its possible to use the scp from one remote host to another in a groovy script. I tried doing it but got the error:</p>
  
  <pre><code>: Copying from a remote server to a remote server is not supported.
      at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:229)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at scp.run(scp.groovy:7)
  </code></pre>
  
  <p>Is there any way around this? I wanted to avoid copying the files to my local machine since the files are big and it will waste time</p>