ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Sshexec: Auth fail
Date Tue, 11 Oct 2005 17:58:46 GMT
 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] 
> Sent: Tuesday, October 11, 2005 8:25 AM
> To: Ant Users List
> Subject: RE: Sshexec: Auth fail
> 
> Can I get some help for the problem below?
> 
> -----Original Message-----
> From: Dick, Brian E. 
> Sent: Friday, October 07, 2005 11:24 AM
> To: Ant Users List
> Subject: Sshexec: Auth fail
> 
> 
> Any hints on how to debug the sshexec task "auth fail"? It 
> was working a couple of weeks ago, but it is now failing for 
> some unknown reason. Of course, "nothing has changed" on my 
> machine. I can connect using ssh from cygwin.
> 
> Thanks
> 
> 
> Here's a short test project I'm using to debug.
> ----------------------------------------------------------------------
> <?xml version="1.0" ?>
> 
> <project name="build" basedir=".." default="chkssh">
>       <sshexec host="${host}"
>                username="${username}"
>                password="${password}"
>                command="ls -l"
>                trust="yes"/>
>    </target>
> </project>
> ----------------------------------------------------------------------
> 
> 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 
> OS: Windows XP Adding reference: ant.ComponentHelper Setting 
> ro project property: ant.version -> Apache Ant version 
> 1.7alpha compiled on December 1 2004 Setting ro project 
> property: ant.file -> 
> 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 
> URI = file:///C:/Projects/DistApp/FI_TRADE/TradeUpload/dist/chkssh.xml
> 
> Setting ro project property: ant.project.name -> build Adding 
> reference: build Setting ro project property: ant.file.build 
> -> 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 
> build sequence is [chkssh, ]
> 
> chkssh:
>   [sshexec] Connecting to fidevapp1:22
> 
> 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 
> 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 
> 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)
> 
> Total time: 1 second
> ----------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message