Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ant and scp  RSS feed

 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use the scp task in ant to deploy my web application, but it's not working. I keep getting an exception saying "auth fail". Does anyone know why it's doing this?

Here is my ant task:



Here is my stack trace:

 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has nobody else here used the scp task?
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I have not, but do use ssh/scp command line quite a bit.

1) Can you run this from the command line?

2) Can you run this outside of ant, using just the jsch.jar?

3) Are all of your ant properties set correctly?

Re: Use of password: you should investigate key authorization.

G.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!