<p>I would like to do remote deployment from my build machine onto a server. The remoting can be done via ssh commands from a script, but I would rather use phing and a deploy.xml file that would do the automation.</p>

<p>What alternatives do I have to do ssh (and also scp) tasks from within a phing build file?</p>

I ran into the same problem about a year ago and back then i could not find a task. I ended up doing a exec task, this way it was all in the xml file.
```
```
<exec command="scp -i keys/id_rsa myfile user@$server:myfile" dir="." />
```
```