Yes. It is documented in the manual. http://ant.apache.org/manual/OptionalTasks/sshexec.html
-Rob A > -----Original Message----- > From: Joao Miguel Ferreira [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 25, 2007 10:33 AM > To: Ant Users List > Subject: Re: using private key authentication (deploy option) > > On Thu, 2007-10-25 at 16:17 +0100, Steve Loughran wrote: > > Joao Miguel Ferreira wrote: > > > Hello all, > > > > > > In our project we have this script to automate the build > and send it > > > to our test server (all Linux, test server and dev PCs): > > > > > > --------------------------------------- > > > export JAVA_HOME=/opt/j2sdk1.4.2_13/ > > > > > > /opt/netbeans-5.0/ide6/ant/bin/ant _deploy-dev-to \ > > > -Ddeploy.host=$1 \ > > > -Ddeploy.pass="ourPassword" > > > --------------------------------------- > > > > > > now we want to stop using passwords and start using dsa > keys. It is > > > working perfectlly with ssh, for example. > > > > > > How do I tell ant to use my id_dsa key and not use the > password ??? > > > > > > is there some kind of -Ddeploy.dsa_key_file=".ssh/id_dsa" > option ??? > > > > That is up to whoever wrote the build file. The <scp> and > <ssh> tasks > > have key support. > > > > is there an option, in ant, to pass the path to the dsa key > file to the uinderlying ssh/scp ???? > > ssh and scp support this option: > > man ssh > ---------------------------------------------- > -i identity_file > > Selects a file from which the identity (private key) for RSA > or DSA authentication is read.... > ----------------------------------------- > > so I guess there could be a way to tell ant to pass it down > to ssh. Do you know of such option ? > > thx > joao > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]