SSH with Groovy and Antbuilder

This examples show how to use the ant ssh task with the Antbuilder in groovy.

def ant = new AntBuilder()
ant.sshexec(host:"hostname",
		keyfile:"/home/localuser/.ssh/id_dsa",
		username:"remoteuser",
		command:"ls")

You will need the ant-jsch.jar and jsch-0.1.33.jar in your classpath.