ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Help Reqd on Scp & Sshexec...Can't get them to run
Date Thu, 12 Feb 2004 17:54:47 GMT
On their homepage [1] is a link to the download page on 
sourceforge [2]. What you´ll get is a source distribution.
Unzip it, change to the root directory and type "ant" - should work :-)

Jan

[1] http://www.jcraft.com/jsch/index.html
[2] http://prdownloads.sourceforge.net/jsch/jsch-0.1.13.zip?download



> -----Original Message-----
> From: Thind, Aman [mailto:aman.thind@fidelity.co.in]
> Sent: Thursday, February 12, 2004 6:42 PM
> To: 'user@ant.apache.org'
> Subject: Help Reqd on Scp & Sshexec...Can't get them to run
> 
> 
> Hello Friends,
> 
> I have a two point task I intend to accomplish through ant :
> 
> 1) Copy a tarball to a unix box using Scp
> 
> 2) Issue an untar command to that unix box using Sshexec
> 
> The ant script shall run on my windows machine.
> 
> For these tasks I downloaded the jsch-0.1.13.zip from
> http://www.jcraft.com/jsch/ <http://www.jcraft.com/jsch/> 
> This does not include the jsch.jar so I compiled it by -
> javac com/jcraft/jsch/*.java com/jcraft/jsch/jce/*.java and then
> Jar -cvf jsch.jar *
> And placed the jar in the ant/lib folder
> Now when I try to run the sshexec task by the build file :
> (all ip etc info replaced)
> -------------------------------------------------------
> <project name="MyProject" default="dist" basedir=".">
> <sshexec host="my_ip"
> 	username="my_username"
> 	password="my_passwd"
> 	command="touch somefile"/>
> </project>
> ----------------------------------------------------------
> I get the error :
> -------------------------------------------------------------
> J:\>ant
> Buildfile: build.xml
>   [sshexec] Connecting to my_ip:22
> BUILD FAILED
> J:\build.xml:5: com.jcraft.jsch.JSchException: reject HostKey
> Total time: 9 seconds
> -----------------------------------------------------------------
> Can someone please shed some light on this and point me in the correct
> direction.
> A link to precompiled jsch.jar could be helpful to rule out 
> any issues in my
> building of the jar.
> Thank you all so much
> -aman
> 
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message