ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: ant exec and ssh-agent
Date Fri, 27 Feb 2004 20:29:15 GMT


> -----Original Message-----
> From: Faine, Mark [mailto:Mark.R.Faine@msfc.nasa.gov]
> Sent: Friday, February 27, 2004 7:01 AM
> To: 'Ant Users List'
> Subject: RE: ant exec and ssh-agent
> 
> 
> 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:
> 
> BUILD FAILED
> /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.  

You don't have to give it a password. You either need a password, or the passphase for the
ssh key you are using. This passphrase can be empty. 

-Rob Anderson


> We do not want
> to store passwords. Which brings me back to using ssh-agent, 
> and my original
> question: 
> 
> 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.
> 
> Thanks,
> -Mark
> 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Friday, February 27, 2004 8:07 AM
> To: user@ant.apache.org
> Subject: RE: ant exec and ssh-agent
> 
> 
> Try <scp> task :)
> 
> Jan
> 
> > -----Original Message-----
> > From: Faine, Mark [mailto:Mark.R.Faine@msfc.nasa.gov]
> > Sent: Friday, February 27, 2004 3:03 PM
> > To: 'user@ant.apache.org'
> > 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message