I need to copy a war file via scp.
I have added the jsch-0.1.42.jar to $ANT_HOME/lib but I\'m still getting this error:
I had the same problem and fixed it!
Remember, you need BOTH ant-jsch.jar (native from ant or java installation) and updated jsch (in my case it was jsch-0.1.46.jar) in ant lib dir.
You need to load the newest jsch.jar from http://www.jcraft.com/jsch/ and add to libs folder (but not replace ant-jsch.jar).
The mistake a lot of developers do:
ant-jsch.jar out of date (in this case ant-jsch.jar and jsch are compatible.jsch not exists or out of date in ant lib dirant-jsch.jar replaced with jsch (i did it...) In last 2 cases ant knows scp command, but says it is not available.