This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant and scp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Ant and scp" Watch "Ant and scp" New topic
Author

Ant and scp

Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
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

Joined: Sep 10, 2003
Posts: 101
Has nobody else here used the scp task?
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
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.
 
 
subject: Ant and scp
 
Threads others viewed
SQL
SCP task in Ant
Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1
ftpclient class not found?
Ant SshExec task throwing JschException : Auth fail
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture