wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT Auth error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT Auth error" Watch "ANT Auth error" New topic
Author

ANT Auth error

Pooja Mehta
Greenhorn

Joined: May 30, 2013
Posts: 4
Hello,

I'm trying to execute scp task in my build.xml but it keeps failing with the below error:
com.jcraft.jsch.JSchException: Auth fail

Here's my code:


I'm using the password uthetication method and am sure of the password I've entered.

Please suggest.


Regards.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

Try adding in the verbose option, that should display the exact scp command being used. Try running that command manually. Anyway, that should help you start debugging the problem.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT Auth error
 
Similar Threads
SCP task in Ant
scp ant task: fail if directory is empty
Ant Property or Fileset
problem with ant scp and sshexec tasks
Ant scp task giving Error