ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karunakar Chatla" <karunak...@cybage.com>
Subject Re: Problem executing <sshexec> task
Date Fri, 19 Aug 2005 10:46:39 GMT
It is giving following error when I use 22 as port number -

com.jcraft.jsch.JSchException: reject HostKey: 172.18.228.70
	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.j
ava: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: reject HostKey: 172.18.228.70
	at com.jcraft.jsch.Session.checkHost(Unknown Source)
	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)



----- Original Message ----- 
From: "Atsuhiko Yamanaka" <atsuhiko.yamanaka@gmail.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, August 19, 2005 4:05 PM
Subject: Re: Problem executing <sshexec> task


Hi,

On 8/19/05, Karunakar Chatla <karunakarc@cybage.com> wrote:
> <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>

Usually, sshd will wait for connections at TCP port 22.
Is TCP port 23 right on your environment?

Sincerely,
--
ymnk

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message