ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klara Ward" <klara.w...@debitech.com>
Subject RE: Using Ant with SSH
Date Thu, 26 Jul 2001 17:08:04 GMT
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:fcruz@camail.harvard.edu]
> Sent: den 26 juli 2001 15:34
> To: ant-user@jakarta.apache.org
> 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 fred@bedrock.com:/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="fred@bedrock.com:/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               |
> >*-----------------------------------------------------*
>
>


Mime
View raw message