ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faine, Mark" <>
Subject RE: ant exec and ssh-agent
Date Fri, 27 Feb 2004 15:00:31 GMT
I did try the SCP task, in fact I started with it, but decided against its
use unless absolutely necessary because it requires an additional
(third-party) jar file that is not available on every machine that could run
this script.  I'd like to keep this ant script very portable and have taken
great care in developing it to be just that.  Anyway the failure of the scp
task is what lead me to trying the exec task to begin with.  The scp task
fails with the following message:

/export/home/admin/transfer.xml:36: neither password nor passphrase for user
admin has been given.  Can't authenticate.

I would think because I didn't give it a password.  If I have to give it a
password I'm defeating the purpose of the entire automation.  We do not want
to store passwords. Which brings me back to using ssh-agent, and my original

Can the scp task or the exec task support ssh-agent? If not does anyone know
of a work around, so that I do not have to store the password. For example,
can I add the identity to the agent in a shell script and then run the ant
task from the shell script?  Just looking for ideas.


-----Original Message-----
From: [] 
Sent: Friday, February 27, 2004 8:07 AM
Subject: RE: ant exec and ssh-agent

Try <scp> task :)


> -----Original Message-----
> From: Faine, Mark []
> Sent: Friday, February 27, 2004 3:03 PM
> To: ''
> Subject: ant exec and ssh-agent
> I would like to use the exec task to run scp but I do not
> want to type a
> password.  I have ssh-agent configured and it works correctly from the
> command line while using any ssh utility.  How can I 
> configure the ant exec
> task to use the ssh-agent identity.
> Thanks,
> -Mark

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message