Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42011 invoked from network); 26 Sep 2005 18:45:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2005 18:45:59 -0000 Received: (qmail 22898 invoked by uid 500); 26 Sep 2005 18:45:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 22633 invoked by uid 500); 26 Sep 2005 18:45:49 -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 22619 invoked by uid 99); 26 Sep 2005 18:45:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2005 11:45:48 -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; Mon, 26 Sep 2005 11:45:53 -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: Exception while executing SSHEXEC Task Date: Mon, 26 Sep 2005 11:45:14 -0700 Message-ID: <200509261845.j8QIjP9a024604@barrierb241.nike.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Exception while executing SSHEXEC Task Thread-Index: AcXCjzKNQl3ITfjtS9SVZeREKLzIVAAOqewA From: "Anderson, Rob (Global Trade)" To: "Ant Users List" X-OriginalArrivalTime: 26 Sep 2005 18:45:14.0415 (UTC) FILETIME=[6E91ABF0:01C5C2CA] X-WSS-ID: 6F269E3127W1357243-01-01 Content-Type: text/plain; charset=us-ascii 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 On the BSD box, you need to place the public key in ~${bsd.user}/.ssh/authorized_keys and make sure the permissions are correct. Directory ~${bsd.user}/.ssh should be 700 and the public key and authorized_keys file should be 644 or 600. Your issue really has more to do with SSH than Ant. -Rob Anderson =20 > -----Original Message----- > From: Karunakar Chatla [mailto:karunakarc@cybage.com]=20 > Sent: Monday, September 26, 2005 4:31 AM > To: Ant Users List > Subject: Exception while executing SSHEXEC Task >=20 >=20 > Hi, >=20 > I want to run some command on FreeBSD box from windows box. > I am using SSHEXEC task for achieving this. >=20 > My script looks something like this : > username=3D"${bsd.user}" > keyfile=3D"${key.file}" > trust=3D"true" > command=3D'chmod +w=20 > "${bsd.dartmail.path}/common/inc/freeBsd/shareLibs/UnixVersion.h"' > output=3D"${output.folder.path}\ssh.log" > failonerror=3D"true"/> >=20 > I am able to execute this script if I use password property=20 > instead of keyfile property. I am getting following exception=20 > when executed with keyfile property : >=20 > build-freebsd.xml:84: com.jcraft.jsch.JSchException: Auth cancel >=20 > I have created DSA key pairs on FreeBSD box using ssh-keygen tool. > Copied the id_dsa (private key) to windows box and set the=20 > path of this file to key.file property in properties file. >=20 > Is there anything more to be done? > Any ideas on this?? >=20 > Thanks, > Karunakar Chatla >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org