com.jcraft.jsch.JSchException: Auth fail
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Philipp_Tiedt
Posted On:   Saturday, September 30, 2006 05:43 AM

Hi all, I make use of the ant task and I am using jsch-1.29.jar. However when executing the following task I get an error. todir="mylogin@myserver:/mydir/myfile" trust="true" password="mypass"/> This is on a windows machine with Java 1.5 and Ant 1.6.5 Any ideas ? The exception is the following... com.jcraft.jsch.JSchException: Auth fail 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 o   More>>

Hi all,



I make use of the ant task and I am using jsch-1.29.jar. However when executing the following task I get an error.






todir="mylogin@myserver:/mydir/myfile" trust="true" password="mypass"/>






This is on a windows machine with Java 1.5 and Ant 1.6.5



Any ideas ?



The exception is the following...



com.jcraft.jsch.JSchException: Auth fail
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.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: Auth fail
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)
... 12 more
--- Nested Exception ---
com.jcraft.jsch.JSchException: Auth fail
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.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)

   <<Less
About | Sitemap | Contact