Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66484 invoked from network); 6 Sep 2007 05:45:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 05:45:29 -0000 Received: (qmail 21071 invoked by uid 500); 6 Sep 2007 05:45:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 20897 invoked by uid 500); 6 Sep 2007 05:45:19 -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 20886 invoked by uid 99); 6 Sep 2007 05:45:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 22:45:18 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shanki@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 05:45:13 +0000 Received: by wa-out-1112.google.com with SMTP id k22so63077waf for ; Wed, 05 Sep 2007 22:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=DGEPlOUSvWJD4cUyE5GJsVsl3taepnbzDWIqW1S4/LM=; b=G/AE/zCH+rSEY+SxiFesq1PDEXRXgR7d1kY5/3v2ptigkmWC0fhNYBDmGxZYj3G9FxdDvdFeC7eCsn1YTms5Oqau9wYXUsbp+H3ZXTYAAkmmxvoNfWoLjP2jj7BjtZO6cqKJ852zZf19zPBFxua/jt2JjV0ssw3wtTW4vg01MgY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=b3MBxdI08JJjTKIse7rZWsxzoE5jETvqIAHJlQnEGPbtpcoN2Jb72/h5PnsHlo9C/fhq7vvQ1IjSp3QeLjxCq1qFIMuUn3wjOD8IGTY4OU2y4u95zkeCqEDjr9oDO7ROF+5MqKjxbW6RzjIS9lBMOI+PKhorqWMhtyub4sq2nPU= Received: by 10.114.151.13 with SMTP id y13mr99220wad.1189057492906; Wed, 05 Sep 2007 22:44:52 -0700 (PDT) Received: by 10.114.106.15 with HTTP; Wed, 5 Sep 2007 22:44:52 -0700 (PDT) Message-ID: Date: Thu, 6 Sep 2007 15:44:52 +1000 From: "Shankar S" To: "Ant Users List" Subject: Re: sshexec In-Reply-To: <200709052228.l85MSZkJ014485@barrierL241.nike.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_37513_8279455.1189057492860" References: <200709052228.l85MSZkJ014485@barrierL241.nike.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_37513_8279455.1189057492860 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ant Version: 1.6.5 jsch version: jsch-0.1.32.jarls i can ssh into the host using putty ,,, OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006 Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: SC-Solaris-build.xml Detected Java version: 1.4 in: c:\j2sdk1.4.2_10\jre Detected OS: Windows 2003 parsing buildfile C:\ci\scripts\SC-Solaris-build.xml with URI = file:///C:/ci/sc ripts/SC-Solaris-build.xml Project base dir set to: C:\ci\scripts Build sequence for target(s) `SC-Solaris' is [SC-Solaris] Complete build sequence is [SC-Solaris, ] SC-Solaris: [sshexec] Connecting to supernova:22 BUILD FAILED C:\ci\scripts\SC-Solaris-build.xml:7: com.jcraft.jsch.JSchException: reject Host Key: xxx at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute( SSHExec.ja va: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 (DefaultExe cutor.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: reject HostKey: supernova at com.jcraft.jsch.Session.checkHost(Session.java:706) at com.jcraft.jsch.Session.connect(Session.java:309) at com.jcraft.jsch.Session.connect(Session.java:145) at org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession (SSHBas e.java:180) at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute( SSHExec.ja va:143) ... 12 more --- Nested Exception --- com.jcraft.jsch.JSchException: reject HostKey: supernova at com.jcraft.jsch.Session.checkHost(Session.java:706) at com.jcraft.jsch.Session.connect(Session.java:309) at com.jcraft.jsch.Session.connect(Session.java:145) at org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession (SSHBas e.java:180) at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute( SSHExec.ja va:143) 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 (DefaultExe cutor.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) Total time: 0 seconds On 9/6/07, Anderson, Rob (Global Trade) wrote: > > Usually this error is caused when you have not specified either > trust="true" or knownhosts="something". You have set trust="true" > though...I'm not sure what is causing the problem. Couple questions: > > What version of Ant? What version of jsch? Can you ssh into the host > with an ssh client? What version is the ssh server? OpenSSH or other? > > Also, produce some output with -verbose and sent it. > > -Rob Anderson > > > -----Original Message----- > > From: Shankar S [mailto:shanki@gmail.com] > > Sent: Wednesday, September 05, 2007 12:52 AM > > To: Ant Users List > > Subject: sshexec > > > > I have got the sshexec task in this format: > > > > > trust="true" /> > > > > Ant throws up saying: > > > > com.jcraft.jsch.JSchException: reject HostKey: xxx > > > > Any help on this is much appreciated. > > > > -Shanki > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_37513_8279455.1189057492860--