Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 68454 invoked from network); 11 Oct 2005 18:46:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 18:46:30 -0000 Received: (qmail 13892 invoked by uid 500); 11 Oct 2005 18:46:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13838 invoked by uid 500); 11 Oct 2005 18:46:23 -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 13826 invoked by uid 99); 11 Oct 2005 18:46:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 11:46:22 -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 [192.223.198.27] (HELO maillnx-us112.fmr.com) (192.223.198.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 11:46:25 -0700 Received: from MSGMMKSM01WIN.DMN1.FMR.COM (MSGMMKSM01WIN.dmn1.fmr.com [10.33.139.32]) by maillnx-us112.fmr.com (Switch-3.1.2/Switch-3.1.0) with SMTP id j9BIk06G001239 for ; Tue, 11 Oct 2005 14:46:00 -0400 Received: from MSGMMKIV02WIN.DMN1.FMR.COM (10.33.148.31) by MSGMMKSM01WIN.DMN1.FMR.COM (Sigaba Gateway v3.83) with ESMTP id 49130516; Tue, 11 Oct 2005 14:46:00 -0400 Received: from MSGMMKIM02WIN.DMN1.FMR.COM ([172.25.108.84]) by MSGMMKIV02WIN.DMN1.FMR.COM with SMTP_server; Tue, 11 Oct 2005 14:45:59 -0400 Received: from msgmmkclp2win.FMR.COM ([10.33.182.27]) by MSGMMKIM02WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.6713); Tue, 11 Oct 2005 14:45:59 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Sshexec: Auth fail Date: Tue, 11 Oct 2005 14:45:59 -0400 Message-ID: <51D0EACF8592FA4EAB5D9D83927202FA1537E5@MSGMMKCLP2WIN.DMN1.FMR.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sshexec: Auth fail Thread-Index: AcXOj9B9O1qDlJk3RSOycthOn4a7wwABAa1w From: "Dick, Brian E." To: "Ant Users List" X-OriginalArrivalTime: 11 Oct 2005 18:45:59.0248 (UTC) FILETIME=[057CE500:01C5CE94] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The patch worked. Here's the URL to the patch. This should be added to the code base. http://marc.theaimsgroup.com/?l=3Dant-dev&m=3D111959408515300&w=3D2 -----Original Message----- From: Dick, Brian E.=20 Sent: Tuesday, October 11, 2005 2:15 PM To: Ant Users List Subject: RE: Sshexec: Auth fail It works from cygwin. Here's the output for ssh -v. I found a post in the jsch forum from an ant user that had to patch the SSHUserInfo class to support the UIKeyboardInteractive interface. I'm trying his patch. I'll let you know how it goes. OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 debug1: Connecting to foohost [x.x.x.x] port 22. debug1: Connection established. debug1: identity file /cygdrive/c/home/user/.ssh/identity type -1 debug1: identity file /cygdrive/c/home/user/.ssh/id_rsa type -1 debug1: identity file /cygdrive/c/home/user/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_3.7.1p2 debug1: match: OpenSSH_3.7.1p2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'foohost' is known and matches the RSA host key. debug1: Found key in /cygdrive/c/home/user/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received =20 ************************************************************************ * * WARNING: This system is restricted to authorized users for legitimate * * business purposes and is subject to audit. The unauthorized access, * * use, or modification of this system or of the data contained therein * * or in transit to/from it is a criminal violation of Federal and * * state laws * =20 ************************************************************************ * debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /cygdrive/c/home/user/.ssh/identity debug1: Trying private key: /cygdrive/c/home/user/.ssh/id_rsa debug1: Trying private key: /cygdrive/c/home/user/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive Password: debug1: Authentication succeeded (keyboard-interactive). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: Tue Oct 11 13:44:45 2005 from fooclient. =20 ************************************************************************ * * WARNING: This system is restricted to authorized users for legitimate * * business purposes and is subject to audit. The unauthorized access, * * use, or modification of this system or of the data contained therein * * or in transit to/from it is a criminal violation of Federal and * * state laws * =20 ************************************************************************ * foohost% logout debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 Connection to foohost closed. debug1: Transferred: stdin 0, stdout 0, stderr 33 bytes in 11.9 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 2.8 debug1: Exit status 0 -----Original Message----- From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]=20 Sent: Tuesday, October 11, 2005 1:59 PM To: Ant Users List Subject: RE: Sshexec: Auth fail You will probably want to get ssh working from cygwin before attempting to connect via Ant. The error suggests you are using the wrong username or password. Perhaps the password expired? What happens on the command line in cygwin? -Rob A > -----Original Message----- > From: Dick, Brian E. [mailto:Brian.Dick@FMR.com]=20 > Sent: Tuesday, October 11, 2005 8:25 AM > To: Ant Users List > Subject: RE: Sshexec: Auth fail >=20 > Can I get some help for the problem below? >=20 > -----Original Message----- > From: Dick, Brian E.=20 > Sent: Friday, October 07, 2005 11:24 AM > To: Ant Users List > Subject: Sshexec: Auth fail >=20 >=20 > Any hints on how to debug the sshexec task "auth fail"? It=20 > was working a couple of weeks ago, but it is now failing for=20 > some unknown reason. Of course, "nothing has changed" on my=20 > machine. I can connect using ssh from cygwin. >=20 > Thanks >=20 >=20 > Here's a short test project I'm using to debug. > ---------------------------------------------------------------------- > >=20 > > username=3D"${username}" > password=3D"${password}" > command=3D"ls -l" > trust=3D"yes"/> > > > ---------------------------------------------------------------------- >=20 > Here's the debug output from the above. > ---------------------------------------------------------------------- > Apache Ant version 1.7alpha compiled on December 1 2004 > Buildfile: chkssh.xml > Adding reference: ant.PropertyHelper > Detected Java version: 1.4 in: C:\j2sdk1.4.2_05\jre Detected=20 > OS: Windows XP Adding reference: ant.ComponentHelper Setting=20 > ro project property: ant.version -> Apache Ant version=20 > 1.7alpha compiled on December 1 2004 Setting ro project=20 > property: ant.file ->=20 > C:\Projects\DistApp\FI_TRADE\TradeUpload\dist\chkssh.xml > Adding reference: ant.projectHelper > Adding reference: ant.parsing.context > Adding reference: ant.targets > parsing buildfile > C:\Projects\DistApp\FI_TRADE\TradeUpload\dist\chkssh.xml with=20 > URI =3D = file:///C:/Projects/DistApp/FI_TRADE/TradeUpload/dist/chkssh.xml >=20 > Setting ro project property: ant.project.name -> build Adding=20 > reference: build Setting ro project property: ant.file.build=20 > -> C:\Projects\DistApp\FI_TRADE\TradeUpload\dist\chkssh.xml > Project base dir set to: C:\Projects\DistApp\FI_TRADE\TradeUpload > +Target: > +Target: chkssh > Attempting to create object of type > org.apache.tools.ant.helper.DefaultExecutor > Adding reference: ant.executor > Build sequence for target(s) `chkssh' is [chkssh] Complete=20 > build sequence is [chkssh, ] >=20 > chkssh: > [sshexec] Connecting to fidevapp1:22 >=20 > BUILD FAILED > C:\Projects\DistApp\FI_TRADE\TradeUpload\dist\chkssh.xml:9: > com.jcraft.jsch.JSchException: Auth fail > 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt > ils.java:9 > 5) > at org.apache.tools.ant.Task.perform(Task.java:366) > 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:1243) > at=20 > org.apache.tools.ant.Project.executeTarget(Project.java:1213) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Def > aultExecut > or.java:36) > at > org.apache.tools.ant.Project.executeTargets(Project.java:1094) > at org.apache.tools.ant.Main.runBuild(Main.java:673) > at org.apache.tools.ant.Main.startAnt(Main.java:188) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:229) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) > Caused by: com.jcraft.jsch.JSchException: Auth fail > 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.j > ava:180) > at > org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(SSH > Exec.java: > 143) > ... 17 more > --- Nested Exception --- > com.jcraft.jsch.JSchException: Auth fail > 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.j > ava:180) > at > org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(SSH > Exec.java: > 143) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt > ils.java:9 > 5) > at org.apache.tools.ant.Task.perform(Task.java:366) > 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:1243) > at=20 > org.apache.tools.ant.Project.executeTarget(Project.java:1213) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Def > aultExecut > or.java:36) > at > org.apache.tools.ant.Project.executeTargets(Project.java:1094) > at org.apache.tools.ant.Main.runBuild(Main.java:673) > at org.apache.tools.ant.Main.startAnt(Main.java:188) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:229) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) >=20 > Total time: 1 second > ---------------------------------------------------------------------- >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > 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 --------------------------------------------------------------------- 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