[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    RE: using private key authentication (deploy option)
From:       "Anderson, Rob (Global Trade)" <Rob.Anderson () nike ! com>
Date:       2007-10-25 17:51:55
Message-ID: 200710251751.l9PHpxbi020850 () barrierB241 ! nike ! com
[Download RAW message or body]

Yes. It is documented in the manual.

http://ant.apache.org/manual/OptionalTasks/sshexec.html

-Rob A 

> -----Original Message-----
> From: Joao Miguel Ferreira [mailto:jmcferreira@criticalsoftware.com] 
> 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: 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic