ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karunakar Chatla" <karunak...@cybage.com>
Subject Problem executing <sshexec> task
Date Fri, 19 Aug 2005 06:28:04 GMT

Hi,

I am relatively new to FreeBSD and ANT.
I wanted to fire a command on FreeBSD box from a windows box. I am using <sshexec> task
to accomplish my task. 
I have downloaded jsch-0.1.21.jar and copied it to lib folder of ANT. Following is by build
file.

<project name="DARTmail" >
 <target name="Build" >
  <sshexec host="172.18.225.17"
    port="23"
    username="user"
    password="password"
    command="ls"
    output="${output.folder.path}\ssh.log"
    failonerror="true"/>
 </target>
</project>

I am getting following error on running above script : Is there any settings to be done to
get connection to FreeBSD box?
I mean, should we change any settings on FreeBSD box to allow the connection?

This is very much urgent for me now. Can anybody help me out?

<stacktrace>D:\kchatla\BuildAutomation\checkout\DARTmail\build-freebsd.xml:82: com.jcraft.jsch.JSchException:
Session.connect: java.net.ConnectException: Connection refused: connect
	at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(SSHExec.java:211)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
	at org.apache.tools.ant.Main.runBuild(Main.java:668)
	at org.apache.tools.ant.Main.startAnt(Main.java:187)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: com.jcraft.jsch.JSchException: Session.connect: java.net.ConnectException: Connection
refused: connect
	at com.jcraft.jsch.Session.connect(Unknown Source)
	at com.jcraft.jsch.Session.connect(Unknown Source)
	at org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBase.java:180)
	at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(SSHExec.java:143)


Thanks,
Karunakar Chatla

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