Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 56690 invoked from network); 19 Aug 2005 17:25:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 17:25:00 -0000 Received: (qmail 8290 invoked by uid 500); 19 Aug 2005 17:24:55 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 8248 invoked by uid 500); 19 Aug 2005 17:24:55 -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 8235 invoked by uid 99); 19 Aug 2005 17:24:55 -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 10:24:55 -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 [203.199.150.190] (HELO envoy.cybage.com) (203.199.150.190) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 10:25:13 -0700 Received: from Ckarunakar ([172.19.13.49]) by envoy.cybage.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 19 Aug 2005 22:53:50 +0530 Message-ID: <024701c5a4e2$c7d4bfa0$310d13ac@cybage.com> From: "Karunakar Chatla" To: "Ant Users List" References: <200508191621.j7JGLO8W021255@barrierb241.nike.com> Subject: Re: Problem executing task Date: Fri, 19 Aug 2005 22:53:57 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-OriginalArrivalTime: 19 Aug 2005 17:23:50.0424 (UTC) FILETIME=[C3C94980:01C5A4E2] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanx, I have done exactly this and is working fine. ----- Original Message ----- From: "Anderson, Rob (Global Trade)" To: "Ant Users List" Sent: Friday, August 19, 2005 9:51 PM Subject: RE: Problem executing task You need to specify either trust="true", of knownhosts="path/to/known/hosts". If the box is within your private network trust="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 > > > 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(SSH > Exec.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(Def > aultExecutor.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(SSH > Exec.java:143) > > > > ----- Original Message ----- > From: "Atsuhiko Yamanaka" > To: "Ant Users List" > Sent: Friday, August 19, 2005 4:05 PM > Subject: Re: Problem executing task > > > Hi, > > On 8/19/05, Karunakar Chatla wrote: > > > > > > > port="23" > > username="user" > > password="password" > > command="ls" > > output="${output.folder.path}\ssh.log" > > failonerror="true"/> > > > > > > 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 > > > --------------------------------------------------------------------- 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