Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42500 invoked from network); 21 Dec 2005 14:44:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Dec 2005 14:44:03 -0000 Received: (qmail 27753 invoked by uid 500); 21 Dec 2005 14:43:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 27709 invoked by uid 500); 21 Dec 2005 14:43:57 -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 27698 invoked by uid 99); 21 Dec 2005 14:43:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 06:43:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rhino1@sympatico.ca designates 209.226.175.74 as permitted sender) Received: from [209.226.175.74] (HELO tomts20-srv.bellnexxia.net) (209.226.175.74) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 06:43:56 -0800 Received: from athlon ([65.95.129.190]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20051221144331.ZUIG8316.tomts20-srv.bellnexxia.net@athlon> for ; Wed, 21 Dec 2005 09:43:31 -0500 Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.14.2/208]); Wed, 21 Dec 2005 09:43:39 -0500 Message-ID: <003f01c6063c$ee8d7450$0d02a8c0@athlon> From: "Rhino" To: "ant-user" Subject: Scp: reject HostKey error? Date: Wed, 21 Dec 2005 09:43:39 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original X-Originating-IP: [0] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Now that I know how to make my sshexec task refer to the proper keyfile, I am trying to update an older Ant script to use sshexec and scp to access our server. I am puzzled by an error I get from my scp task that doesn't afflict my sshexec task, even though they use the same properties. Here is the relevant property (with my hostname munged for security)and my target: ------------------------------- ------------------------------- And here is my error message, again with the host name munged for security: ------------------------------- BUILD FAILED E:\eclipse\3.1.1\eclipse\workspace\Resume_JDK_1.5.0\xml\scp.xml:229: com.jcraft.jsch.JSchException: reject HostKey: www.bongo.com at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:187) 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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) Caused by: com.jcraft.jsch.JSchException: reject HostKey: www.tonge.ca 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.Scp.upload(Scp.java:249) at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176) ... 11 more --- Nested Exception --- com.jcraft.jsch.JSchException: reject HostKey: www.bongo.com 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.Scp.upload(Scp.java:249) at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176) 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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) ------------------------------- Why is my domain name accepted by sshexec but rejected by scp only a split second later? They are using the exact same server.hostname property in their respective tasks. Both sshexec and scp were written by the same company, JCraft, which supports both tasks via the same jar. It wouldn't surprise me if the same developer(s) wrote both tasks. I am using Ant 1.6.5 in Eclipse 3.1.1. I am using jsch-0.1.2.4.jar, which was the latest and greatest version as of a couple of days ago. Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.2/208 - Release Date: 20/12/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org