ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faine, Mark" <Mark.R.Fa...@msfc.nasa.gov>
Subject RE: ant exec and ssh-agent
Date Fri, 27 Feb 2004 21:19:27 GMT
Really good point but these script will never run on windows, there is only
one that is running it now and two more that will (possibly in the future)
all Solaris boxes.  These scripts are meant to run on our CVS box and
export,compile and deploy web applications, the main thing I need when I say
portability is to know if a CVS box is replaced I can get the scripts
working again quickly on the new box without a lot of extra dependencies.  

All I need when dealing with setting up a new CVS box is yet another (jar,
in this case) file I forgot to download and install.  Someone said the
jsch.jar is included in ant 1.6.0 but it wasn't included in mine?? Go
figure.

I think I'm gonna give your shell script idea a go and see how that works
out.

Thanks,
-Mark


-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com] 
Sent: Friday, February 27, 2004 2:47 PM
To: Ant Users List
Subject: RE: ant exec and ssh-agent


The benefit of using the scp ant task is that you do not need to have ssh or
scp installed on the system. You mention that you want the script to be
portable. What about windows systems? If you get the required jar file and
use the scp ant task, your build file will work on any system, any platform.
Sure, you are trading one dependency for another, but you are trading a
platform specific dependency for a platform independent dependency.

-Rob Anderson

> -----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.  
> 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

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


Mime
View raw message