Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 33362 invoked from network); 19 Aug 2005 16:21:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 16:21:33 -0000 Received: (qmail 93952 invoked by uid 500); 19 Aug 2005 16:21:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93922 invoked by uid 500); 19 Aug 2005 16:21:27 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 93907 invoked by uid 99); 19 Aug 2005 16:21:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 09:21:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [146.197.27.40] (HELO barrierb241.nike.com) (146.197.27.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 09:21:45 -0700 X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Problem executing task Date: Fri, 19 Aug 2005 09:21:17 -0700 Message-ID: <200508191621.j7JGLO8W021255@barrierb241.nike.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem executing task Thread-Index: AcWkq37PGJu/52JpQwqRRPo9+9w7kQALlHog From: "Anderson, Rob (Global Trade)" To: "Ant Users List" X-OriginalArrivalTime: 19 Aug 2005 16:21:17.0586 (UTC) FILETIME=[06EBA720:01C5A4DA] X-WSS-ID: 6F18D9771LC1432927-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You need to specify either trust=3D"true", of = knownhosts=3D"path/to/known/hosts". If the box is within your private = network trust=3D"true" is probably OK. -Rob A > -----Original Message----- > From: Karunakar Chatla [mailto:karunakarc@cybage.com] > Sent: Friday, August 19, 2005 3:47 AM > To: Ant Users List; ymnk@jcraft.com > Subject: Re: Problem executing task >=20 >=20 > It is giving following error when I use 22 as port number - >=20 > com.jcraft.jsch.JSchException: reject HostKey: 172.18.228.70 > at > org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(SSH > Exec.java:211) > at=20 > 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=20 > 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(Def > aultExecutor.j > ava:40) > at=20 > 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:=20 > 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(SSH > Exec.java:143) >=20 >=20 >=20 > ----- Original Message -----=20 > From: "Atsuhiko Yamanaka" > To: "Ant Users List" > Sent: Friday, August 19, 2005 4:05 PM > Subject: Re: Problem executing task >=20 >=20 > Hi, >=20 > On 8/19/05, Karunakar Chatla wrote: > > > > > > > port=3D"23" > > username=3D"user" > > password=3D"password" > > command=3D"ls" > > output=3D"${output.folder.path}\ssh.log" > > failonerror=3D"true"/> > > > > >=20 > Usually, sshd will wait for connections at TCP port 22. > Is TCP port 23 right on your environment? >=20 > Sincerely, > -- > ymnk >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org