How to ssh a file to a remote machine

I am using gradle 1.10 and i’m trying to create a simple task:

  1. ssh a file from my local machine (the machine that executes the task) to a remote machine via ssh (using username , password and ip)

how can i achieve that?


The Gradle SSH plugin provides this functionality out-of-the-box. The documentation of the plugin has plenty of example.