Installing SSH and SCP in ANT 1.8.2 OSX
Published by Nicholas Dunbar on September 3rd, 2013
Download jsch-0.1.50.jar at http://sourceforge.net/projects/jsch/files/jsch/0.1.50/jsch-0.1.50.zip/download
Download ant-jsch-1.8.2.jar at http://mvnrepository.com/artifact/org.apache.ant/ant-jsch/1.8.2
jsch-0.1.50.jar - contains the supporting classes for ssh and scp.
ant-jsch-1.8.2.jar - contains the tasks definitions for ANT.
They are not the same thing even though both have the word jsch in it.
Open a command line terminal
Type at the prompt
machine:direct usrname: ant -diagnostics | grep ant.library.dir
You should get something like the following:
ant.library.dir : /usr/share/ant/lib
Move the jar files into the directory /usr/share/ant/lib
Start using the ssh and scp tasks.