You presumably could run ssh-agent to enter the passphrase before starting
Ant. I haven't verified that this will work when execing scp from Ant.

> -----Original Message-----
> From: Klara Ward [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 27 July 2001 3:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Using Ant with SSH
>
>
> But I suppose the only way of doing this without human
> interaction is having
> an empty passphrase?
> (I tried scp:ing in an expect script to enter the passphrase
> automatically,
> but it didn't work.)
>
> Klara
>
> > -----Original Message-----
> > From: Filip Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: den 26 juli 2001 15:34
> > To: [EMAIL PROTECTED]
> > Subject: Re: Using Ant with SSH
> >
> >
> > Cool!
> > I'll give it a try.
> >
> > At 01:26 AM 7/27/2001 +1000, you wrote:
> > >On Fri, 27 Jul 2001 01:17, Filip Cruz wrote:
> > > > Sorry,
> > > > I am trying to use Ant to deploy to our production servers
> > through SSH. In
> > > > brief I want to be able to deploy the files over SSH to the
> > server from a
> > > > task in the Ant build.xml file. I am using a Win2K client and
> > I have SSH
> > > > Secure Shell client and SecureCRT.
> > > >
> > > > Is there a way to deploy over SSH from Ant?? If so, how is it done?
> > >
> > >I don't know about SSH on win32 but on linux I can do something like.
> > >
> > >scp myfile.zip [EMAIL PROTECTED]:/my/deployment/dir
> > >
> > >and use public/private key system to authenticate. So to do it
> in ant it
> > >would be as simple as
> > >
> > ><exec executable="scp" os="Linux">
> > >   <arg value="myfile.zip"/>
> > >   <arg value="[EMAIL PROTECTED]:/my/deployment/dir"/>
> > ></exec>
> > >
> > >Cheers,
> > >
> > >Pete
> > >
> > >*-----------------------------------------------------*
> > >| "Faced with the choice between changing one's mind, |
> > >| and proving that there is no need to do so - almost |
> > >| everyone gets busy on the proof."                   |
> > >|              - John Kenneth Galbraith               |
> > >*-----------------------------------------------------*
> >
> >
>
>

Reply via email to