ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Gill" <Ben.G...@t-mobile.co.uk>
Subject RE: SCP Task - ant 1.6alpha
Date Fri, 12 Sep 2003 14:18:45 GMT
For me too.  Thanks

I was not sure where to find the dtd/doc for the scp task, but it was easy to work out..

 <scp file="filetosend.tar" todir="remoteuser:remotepassword@remotehost:destination/remote/dir">
 </scp>

I then had a problem with my JCE initialisation (you have to add security.provider.n=com.sun.crypto.provider.SunJCE
to the java.security file (and replace n with the next sequential number))..  I added (as
I already had 2 entries):

security.provider.3=com.sun.crypto.provider.SunJCE

Still not quite there...  the scp task seems to be using ssh1 not ssh2...

scptomyremotehost:
      [scp] Connecting to myremotehost:22
      [scp] java.io.FileNotFoundException: /u/myyser/.ssh/known_hosts (No such file or directory)

BUILD FAILED
build.xml:288: java.io.IOException: Pipe closed

Total time: 23 seconds

I have a .ssh2 dir though!!  why is it not using this!?

Any ideas?


-----Original Message-----
From: James Richmond [mailto:jrichmond41@hotmail.com]
Sent: 12 September 2003 13:50
To: user@ant.apache.org
Subject: Re: SCP Task - ant 1.6alpha


Thanks again, replacing the ant-jsch.jar fixed it.


On Fri, 12 Sep 2003, James Richmond <jrichmond41@hotmail.com> wrote:

>Thanks Stefan, please advise how to build with SSH tasks as suggested,

Pick up a source distribution, unpack it, put jsch.jar into the lib/optional 
folder and run the bootstrap script suitable for your platform.

>or point me towards an older build with working SSH tasks.

You can use the latest ant-jsch.jar from 
<http://gump.covalent.net/jars/latest/ant/> and put it into ANT_HOME/lib.

Stefan

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

_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


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